[][src]Struct cfg::binarized::BinarizedRule

pub struct BinarizedRule<H> { /* fields omitted */ }

Compact representation of a binarized rule.

Methods

impl<H> BinarizedRule<H>[src]

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

Creates a new binarized rule.

pub fn lhs(&self) -> Symbol[src]

Returns the first symbol.

pub fn rhs0(&self) -> Symbol[src]

Returns the first symbol.

pub fn rhs1(&self) -> Option<Symbol>[src]

Returns the second symbol, if present.

Trait Implementations

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

type History = H

The type of history carried with the rule.

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

impl<H: Copy> Copy for BinarizedRule<H>[src]

impl<H> Eq for BinarizedRule<H>[src]

impl<H> Ord for BinarizedRule<H>[src]

impl<H> PartialEq<BinarizedRule<H>> for BinarizedRule<H>[src]

impl<H> PartialOrd<BinarizedRule<H>> for BinarizedRule<H>[src]

Auto Trait Implementations

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

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

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

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

impl<H> RefUnwindSafe for BinarizedRule<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]