Skip to content

Use bitflags to implement a wrapper type for bitfields using understandable names. #23

Description

@SquareMan
bitflags! {
  #[repr(transparent)]
  pub struct SpatulaFlags: u8 {
    const ENABLED = 0b0000_0001;
    // whatever the other bits do
  }
}

would be huge readability win for us and consumers.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions