[][src]Struct gearley::recognizer::CompleteSum

pub struct CompleteSum<'g, 'r, F> where
    F: Forest
{ /* fields omitted */ }

A group of completed items.

Methods

impl<'g, 'r, F> CompleteSum<'g, 'r, F> where
    F: Forest,
    'g: 'r, 
[src]

pub fn complete_entire_sum(&mut self)[src]

Completes all items.

pub fn skip_entire_sum(&mut self)[src]

Skips all items.

pub fn next_summand(&mut self) -> Option<CompletedItem<F::NodeRef>>[src]

Allows iteration through completed items.

pub fn push_summand(&mut self, completed_item: CompletedItem<F::NodeRef>)[src]

Includes an item in the completion.

pub fn complete_sum(&mut self) -> F::NodeRef[src]

Uses the completion to complete items in the recognizer.

pub fn origin(&self) -> Origin[src]

Returns the origin location of this completion.

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

Returns the symbol of this completion.

Auto Trait Implementations

impl<'g, 'r, F> Send for CompleteSum<'g, 'r, F> where
    F: Send,
    <F as Forest>::NodeRef: Send

impl<'g, 'r, F> Sync for CompleteSum<'g, 'r, F> where
    F: Sync,
    <F as Forest>::NodeRef: Sync

impl<'g, 'r, F> Unpin for CompleteSum<'g, 'r, F> where
    'g: 'r, 

impl<'g, 'r, F> !UnwindSafe for CompleteSum<'g, 'r, F>

impl<'g, 'r, F> RefUnwindSafe for CompleteSum<'g, 'r, F> where
    F: RefUnwindSafe,
    <F as Forest>::NodeRef: 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 = !

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]