[−][src]Struct cfg::remap::Remap
Remaps symbols and removes unused symbols.
Methods
impl<'a, G> Remap<'a, G> where
G: ContextFree,
G::History: Clone,
[src]
G: ContextFree,
G::History: Clone,
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]
F: Fn(Symbol, Symbol) -> Ordering,
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,
G: Send,
impl<'a, G> Sync for Remap<'a, G> where
G: Sync,
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,
G: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,