أعلام البت (Bitflags)
The bitflags
crate is useful for working with bitflags.
Speaker Notes
- The
bitflags!
macro creates a newtype something likeFlags(u16)
, along with a bunch of method implementations to get and set flags.
The bitflags
crate is useful for working with bitflags.
bitflags!
macro creates a newtype something like Flags(u16)
, along with a bunch of method implementations to get and set flags.