[][src]Struct cfg::sequence::rewrite::SequencesToProductions

pub struct SequencesToProductions<H, D> where
    H: RewriteSequence,
    D: RuleContainer
{ /* fields omitted */ }

Rewrites sequence rules into production rules.

Methods

impl<H, D> SequencesToProductions<H, D> where
    D: RuleContainer<History = H::Rewritten>,
    H: Clone + RewriteSequence,
    H::Rewritten: Clone
[src]

pub fn new(destination: D) -> Self[src]

Initializes a rewrite.

pub fn rewrite_sequences(sequence_rules: &[Sequence<H>], rules: D)[src]

Rewrites sequence rules.

pub fn rewrite(&mut self, top: Sequence<H>)[src]

Rewrites a sequence rule.

Trait Implementations

impl<H, D> SequenceDestination<H> for SequencesToProductions<H, D> where
    D: RuleContainer<History = H::Rewritten>,
    H: Clone + RewriteSequence,
    H::Rewritten: Clone
[src]

Auto Trait Implementations

impl<H, D> Send for SequencesToProductions<H, D> where
    D: Send,
    H: Send

impl<H, D> Sync for SequencesToProductions<H, D> where
    D: Sync,
    H: Sync

impl<H, D> Unpin for SequencesToProductions<H, D> where
    D: Unpin,
    H: Unpin

impl<H, D> UnwindSafe for SequencesToProductions<H, D> where
    D: UnwindSafe,
    H: UnwindSafe

impl<H, D> RefUnwindSafe for SequencesToProductions<H, D> where
    D: RefUnwindSafe,
    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, 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]