pub enum FlagsItemKind {
Negation,
Flag(Flag),
}
Expand description
The kind of an item in a group of flags.
Variants§
Negation
A negation operator applied to all subsequent flags in the enclosing group.
Flag(Flag)
A single flag in a group.
Implementations§
Source§impl FlagsItemKind
impl FlagsItemKind
Sourcepub fn is_negation(&self) -> bool
pub fn is_negation(&self) -> bool
Returns true if and only if this item is a negation operator.
Trait Implementations§
Source§impl Clone for FlagsItemKind
impl Clone for FlagsItemKind
Source§fn clone(&self) -> FlagsItemKind
fn clone(&self) -> FlagsItemKind
Returns a copy of the value. Read more
1.0.0 · 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 FlagsItemKind
impl Debug for FlagsItemKind
Source§impl PartialEq for FlagsItemKind
impl PartialEq for FlagsItemKind
impl Eq for FlagsItemKind
impl StructuralPartialEq for FlagsItemKind
Auto Trait Implementations§
impl Freeze for FlagsItemKind
impl RefUnwindSafe for FlagsItemKind
impl Send for FlagsItemKind
impl Sync for FlagsItemKind
impl Unpin for FlagsItemKind
impl UnwindSafe for FlagsItemKind
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Negation
: 0 bytesFlag
: 1 byte