[][src]Struct cfg::classification::lr::Lr0ClosureBuilder

pub struct Lr0ClosureBuilder<'a, G> { /* fields omitted */ }

A builder for an LR(0) item closure.

Methods

impl<'a, G> Lr0ClosureBuilder<'a, G> where
    G: ContextFree,
    &'b G: ContextFreeRef<'b, Target = G>, 
[src]

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

Creates a builder for an LR(0) item closure.

pub fn closure(&mut self, items: &mut Lr0Items)[src]

We compute the closure for LR(0) items.

pub fn advance(&mut self, items: &Lr0Items, sym: Symbol) -> Option<Lr0Items>[src]

Advances the items by a symbol.

Auto Trait Implementations

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

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

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

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

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