pub struct BooleanFlag { /* private fields */ }Expand description
A flag paired with a boolean state.
Implementations§
Source§impl BooleanFlag
impl BooleanFlag
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Returns whether the flag is enabled.
Trait Implementations§
Source§impl Clone for BooleanFlag
impl Clone for BooleanFlag
Source§fn clone(&self) -> BooleanFlag
fn clone(&self) -> BooleanFlag
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BooleanFlag
impl Debug for BooleanFlag
Source§impl Hash for BooleanFlag
impl Hash for BooleanFlag
Source§impl PartialEq for BooleanFlag
impl PartialEq for BooleanFlag
Source§fn eq(&self, other: &BooleanFlag) -> bool
fn eq(&self, other: &BooleanFlag) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BooleanFlag
impl StructuralPartialEq for BooleanFlag
Auto Trait Implementations§
impl Freeze for BooleanFlag
impl RefUnwindSafe for BooleanFlag
impl Send for BooleanFlag
impl Sync for BooleanFlag
impl Unpin for BooleanFlag
impl UnsafeUnpin for BooleanFlag
impl UnwindSafe for BooleanFlag
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