Skip to content

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

@SquareMan

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.

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