pub struct FlagValue {
pub value: u64,
pub names: &'static [&'static str],
}Expand description
Named bit flags for protocol fields.
Stores a flag value along with names for each bit position.
Fields§
§value: u64The raw flag bits.
names: &'static [&'static str]Flag names indexed by bit position (LSB = index 0).
Implementations§
Trait Implementations§
impl Eq for FlagValue
Auto Trait Implementations§
impl Freeze for FlagValue
impl RefUnwindSafe for FlagValue
impl Send for FlagValue
impl Sync for FlagValue
impl Unpin for FlagValue
impl UnsafeUnpin for FlagValue
impl UnwindSafe for FlagValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more