Enum regex_syntax::ast::FlagsItemKind
source · 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<FlagsItemKind> for FlagsItemKind
impl PartialEq<FlagsItemKind> for FlagsItemKind
source§fn eq(&self, other: &FlagsItemKind) -> bool
fn eq(&self, other: &FlagsItemKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FlagsItemKind
impl StructuralEq for FlagsItemKind
impl StructuralPartialEq for FlagsItemKind
Auto Trait Implementations§
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