Enum gallop::RuleElement
source · [−]Expand description
Elements that make up each Rule
Variants
Empty
The empty string
NonTerminal(&'a str)
An intermediary syntactic variable
Terminal(char)
A single Unicode scalar value to scan against
Trait Implementations
sourceimpl<'a> Clone for RuleElement<'a>
impl<'a> Clone for RuleElement<'a>
sourcefn clone(&self) -> RuleElement<'a>
fn clone(&self) -> RuleElement<'a>
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<'a> Debug for RuleElement<'a>
impl<'a> Debug for RuleElement<'a>
sourceimpl<'a> Ord for RuleElement<'a>
impl<'a> Ord for RuleElement<'a>
sourceimpl<'a> PartialEq<RuleElement<'a>> for RuleElement<'a>
impl<'a> PartialEq<RuleElement<'a>> for RuleElement<'a>
sourcefn eq(&self, other: &RuleElement<'a>) -> bool
fn eq(&self, other: &RuleElement<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RuleElement<'a>) -> bool
fn ne(&self, other: &RuleElement<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<RuleElement<'a>> for RuleElement<'a>
impl<'a> PartialOrd<RuleElement<'a>> for RuleElement<'a>
sourcefn partial_cmp(&self, other: &RuleElement<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &RuleElement<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Eq for RuleElement<'a>
impl<'a> StructuralEq for RuleElement<'a>
impl<'a> StructuralPartialEq for RuleElement<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for RuleElement<'a>
impl<'a> Send for RuleElement<'a>
impl<'a> Sync for RuleElement<'a>
impl<'a> Unpin for RuleElement<'a>
impl<'a> UnwindSafe for RuleElement<'a>
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