[−][src]Struct gearley::recognizer::CompleteSum
A group of completed items.
Methods
impl<'g, 'r, F> CompleteSum<'g, 'r, F> where
F: Forest,
'g: 'r,
[src]
F: Forest,
'g: 'r,
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,
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,
F: Sync,
<F as Forest>::NodeRef: Sync,
impl<'g, 'r, F> Unpin for CompleteSum<'g, 'r, F> where
'g: 'r,
'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,
F: RefUnwindSafe,
<F as Forest>::NodeRef: 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 = !
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,