Skip to content

Make storage order for bitmap! structs configurable #7

@winstonallo

Description

@winstonallo

Currently, the following code:

bitmap!(
    struct Bits {
         a: u8,
         b: u8,
    }
)

will always store the fields as follows:

15-8 7-0
a b

This is by choice, as big-endian is often easier to reason about, but it might be cool to have the choice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions