Enum gallop::RuleElement [−][src]
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
impl<'a> Clone for RuleElement<'a>
[src]
impl<'a> Clone for RuleElement<'a>
fn clone(&self) -> RuleElement<'a>
[src]
fn clone(&self) -> RuleElement<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Debug for RuleElement<'a>
[src]
impl<'a> Debug for RuleElement<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Eq for RuleElement<'a>
[src]
impl<'a> Eq for RuleElement<'a>
impl<'a> Ord for RuleElement<'a>
[src]
impl<'a> Ord for RuleElement<'a>
fn cmp(&self, other: &RuleElement<'a>) -> Ordering
[src]
fn cmp(&self, other: &RuleElement<'a>) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl<'a> PartialEq for RuleElement<'a>
[src]
impl<'a> PartialEq for RuleElement<'a>
fn eq(&self, other: &RuleElement<'a>) -> bool
[src]
fn eq(&self, other: &RuleElement<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &RuleElement<'a>) -> bool
[src]
fn ne(&self, other: &RuleElement<'a>) -> bool
This method tests for !=
.
impl<'a> PartialOrd for RuleElement<'a>
[src]
impl<'a> PartialOrd for RuleElement<'a>
fn partial_cmp(&self, other: &RuleElement<'a>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &RuleElement<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &RuleElement<'a>) -> bool
[src]
fn lt(&self, other: &RuleElement<'a>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &RuleElement<'a>) -> bool
[src]
fn le(&self, other: &RuleElement<'a>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &RuleElement<'a>) -> bool
[src]
fn gt(&self, other: &RuleElement<'a>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &RuleElement<'a>) -> bool
[src]
fn ge(&self, other: &RuleElement<'a>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl<'a> Send for RuleElement<'a>
impl<'a> Send for RuleElement<'a>
impl<'a> Sync for RuleElement<'a>
impl<'a> Sync for RuleElement<'a>