[][src]Struct cfg::rule::Rule

pub struct Rule<H> {
    pub rhs: Vec<Symbol>,
    pub history: H,
    // some fields omitted
}

Typical grammar rule representation.

Fields

rhs: Vec<Symbol>

The rule's right-hand side.

history: H

The rule's history.

Methods

impl<H> Rule<H>[src]

pub fn new(lhs: Symbol, rhs: Vec<Symbol>, history: H) -> Self[src]

Creates a new rule.

Trait Implementations

impl<H> GrammarRule for Rule<H>[src]

type History = H

The type of history carried with the rule.

impl<H: Clone> Clone for Rule<H>[src]

impl<H: Debug> Debug for Rule<H>[src]

Auto Trait Implementations

impl<H> Send for Rule<H> where
    H: Send

impl<H> Sync for Rule<H> where
    H: Sync

impl<H> Unpin for Rule<H> where
    H: Unpin

impl<H> UnwindSafe for Rule<H> where
    H: UnwindSafe

impl<H> RefUnwindSafe for Rule<H> where
    H: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]