pub struct Flags { /* private fields */ }Expand description
A finite set of boolean flags that may be false or true.
Implementations§
Source§impl Flags
impl Flags
Sourcepub fn get(&self, name: impl AsRef<str>) -> bool
pub fn get(&self, name: impl AsRef<str>) -> bool
Gets the value of the flag with the given name.
Sourcepub fn set(&mut self, name: impl AsRef<str>, value: bool)
pub fn set(&mut self, name: impl AsRef<str>, value: bool)
Sets the value of the flag with the given name.
Trait Implementations§
impl StructuralPartialEq for Flags
Auto Trait Implementations§
impl Freeze for Flags
impl RefUnwindSafe for Flags
impl Send for Flags
impl Sync for Flags
impl Unpin for Flags
impl UnwindSafe for Flags
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