[][src]Struct cfg::remap::Remap

pub struct Remap<'a, G: 'a> where
    G: ContextFree
{ /* fields omitted */ }

Remaps symbols and removes unused symbols.

Methods

impl<'a, G> Remap<'a, G> where
    G: ContextFree,
    G::History: Clone
[src]

pub fn new(grammar: &'a mut G) -> Self[src]

Creates Remap to record information about remapped symbols.

pub fn remove_unused_symbols(&mut self)[src]

Removes unused symbols.

pub fn reorder_symbols<F>(&mut self, f: F) where
    F: Fn(Symbol, Symbol) -> Ordering
[src]

Remaps symbols to satisfy given ordering constraints. The argument must be a function that gives total order.

pub fn get_mapping(self) -> Mapping[src]

Get the mapping.

Auto Trait Implementations

impl<'a, G> Send for Remap<'a, G> where
    G: Send

impl<'a, G> Sync for Remap<'a, G> where
    G: Sync

impl<'a, G> Unpin for Remap<'a, G>

impl<'a, G> !UnwindSafe for Remap<'a, G>

impl<'a, G> RefUnwindSafe for Remap<'a, G> where
    G: 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]