pub struct CmdFlags { /* private fields */ }Implementations§
Source§impl CmdFlags
impl CmdFlags
pub const DONE: CmdFlags = _
pub const ASK: CmdFlags = _
pub const MOVED: CmdFlags = _
pub const NOREPLY: CmdFlags = _
pub const QUIET: CmdFlags = _
pub const ERROR: CmdFlags = _
Sourcepub fn from_bits(bits: u8) -> Option<CmdFlags>
pub fn from_bits(bits: u8) -> Option<CmdFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u8) -> CmdFlags
pub const fn from_bits_truncate(bits: u8) -> CmdFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u8) -> CmdFlags
pub const unsafe fn from_bits_unchecked(bits: u8) -> CmdFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: CmdFlags) -> bool
pub const fn intersects(&self, other: CmdFlags) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations§
Source§impl BitAndAssign for CmdFlags
impl BitAndAssign for CmdFlags
Source§fn bitand_assign(&mut self, other: CmdFlags)
fn bitand_assign(&mut self, other: CmdFlags)
Disables all flags disabled in the set.
Source§impl BitOrAssign for CmdFlags
impl BitOrAssign for CmdFlags
Source§fn bitor_assign(&mut self, other: CmdFlags)
fn bitor_assign(&mut self, other: CmdFlags)
Adds the set of flags.
Source§impl BitXorAssign for CmdFlags
impl BitXorAssign for CmdFlags
Source§fn bitxor_assign(&mut self, other: CmdFlags)
fn bitxor_assign(&mut self, other: CmdFlags)
Toggles the set of flags.
Source§impl Extend<CmdFlags> for CmdFlags
impl Extend<CmdFlags> for CmdFlags
Source§fn extend<T: IntoIterator<Item = CmdFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = CmdFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<CmdFlags> for CmdFlags
impl FromIterator<CmdFlags> for CmdFlags
Source§impl Ord for CmdFlags
impl Ord for CmdFlags
Source§impl PartialOrd for CmdFlags
impl PartialOrd for CmdFlags
Source§impl SubAssign for CmdFlags
impl SubAssign for CmdFlags
Source§fn sub_assign(&mut self, other: CmdFlags)
fn sub_assign(&mut self, other: CmdFlags)
Disables all flags enabled in the set.
impl Copy for CmdFlags
impl Eq for CmdFlags
impl StructuralPartialEq for CmdFlags
Auto Trait Implementations§
impl Freeze for CmdFlags
impl RefUnwindSafe for CmdFlags
impl Send for CmdFlags
impl Sync for CmdFlags
impl Unpin for CmdFlags
impl UnwindSafe for CmdFlags
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.