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

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: Debug, N: Debug, A: Debug> Debug for Rhs<T, N, A>
[src]

Formats the value using the given formatter.

impl<T: Clone, N: Clone, A: Clone> Clone for Rhs<T, N, A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T, N, A> PartialEq for Rhs<T, N, A> where T: PartialEq, N: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

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]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<T, N, A> Ord for Rhs<T, N, A> where T: Ord, N: Ord
[src]

This method returns an Ordering between self and other. Read more