pub struct Flag {
pub name: String,
pub index: u32,
}Expand description
A flag reference inside a parameter type, e.g. flags.0 in flags.0?true.
Fields§
§name: StringThe name of the flags field that holds this bit (usually "flags").
index: u32The bit index (0-based).
Trait Implementations§
impl Eq for Flag
impl StructuralPartialEq for Flag
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnsafeUnpin for Flag
impl UnwindSafe for Flag
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