Struct lalr::Rhs
[−]
[src]
pub struct Rhs<T, N, A> { pub syms: Vec<Symbol<T, N>>, pub act: A, }
The right-hand side of a rule in a context-free grammar.
Fields
syms: Vec<Symbol<T, N>>
act: A
An action associated with this rule. This can be any data you want to attach to a rule.
This field is ignored by the Eq
and Ord
instances.
Trait Implementations
impl<T: Clone, N: Clone, A: Clone> Clone for Rhs<T, N, A>
[src]
fn clone(&self) -> Rhs<T, N, A>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: Debug, N: Debug, A: Debug> Debug for Rhs<T, N, A>
[src]
impl<T, N, A> PartialEq for Rhs<T, N, A> where T: PartialEq, N: PartialEq
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl<T, N, A> Eq for Rhs<T, N, A> where T: Eq, N: Eq
[src]
impl<T, N, A> PartialOrd for Rhs<T, N, A> where T: PartialOrd, N: PartialOrd
[src]
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more