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
sourceimpl 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
sourceimpl Clone for FlagsItemKind
impl Clone for FlagsItemKind
sourcefn clone(&self) -> FlagsItemKind
fn clone(&self) -> FlagsItemKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlagsItemKind
impl Debug for FlagsItemKind
sourceimpl PartialEq<FlagsItemKind> for FlagsItemKind
impl PartialEq<FlagsItemKind> for FlagsItemKind
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &FlagsItemKind) -> bool
fn ne(&self, other: &FlagsItemKind) -> bool
This method tests for !=
.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more