pub struct CompleteSum<'g, 'r, F>where
F: Forest,{ /* private fields */ }Expand description
A group of completed items.
Implementations§
Source§impl<'g, 'r, F> CompleteSum<'g, 'r, F>where
F: Forest,
'g: 'r,
impl<'g, 'r, F> CompleteSum<'g, 'r, F>where
F: Forest,
'g: 'r,
Sourcepub fn complete_entire_sum(&mut self)
pub fn complete_entire_sum(&mut self)
Completes all items.
Sourcepub fn skip_entire_sum(&mut self)
pub fn skip_entire_sum(&mut self)
Skips all items.
Sourcepub fn next_summand(&mut self) -> Option<CompletedItem<F::NodeRef>>
pub fn next_summand(&mut self) -> Option<CompletedItem<F::NodeRef>>
Allows iteration through completed items.
Sourcepub fn push_summand(&mut self, completed_item: CompletedItem<F::NodeRef>)
pub fn push_summand(&mut self, completed_item: CompletedItem<F::NodeRef>)
Includes an item in the completion.
Sourcepub fn complete_sum(&mut self) -> F::NodeRef
pub fn complete_sum(&mut self) -> F::NodeRef
Uses the completion to complete items in the recognizer.
Auto Trait Implementations§
impl<'g, 'r, F> !UnwindSafe for CompleteSum<'g, 'r, F>
impl<'g, 'r, F> Freeze for CompleteSum<'g, 'r, F>where
&'r mut Recognizer<'g, F>: Freeze,
impl<'g, 'r, F> RefUnwindSafe for CompleteSum<'g, 'r, F>where
&'r mut Recognizer<'g, F>: RefUnwindSafe,
impl<'g, 'r, F> Send for CompleteSum<'g, 'r, F>where
&'r mut Recognizer<'g, F>: Send,
impl<'g, 'r, F> Sync for CompleteSum<'g, 'r, F>where
&'r mut Recognizer<'g, F>: Sync,
impl<'g, 'r, F> Unpin for CompleteSum<'g, 'r, F>where
&'r mut Recognizer<'g, F>: Unpin,
impl<'g, 'r, F> UnsafeUnpin for CompleteSum<'g, 'r, F>where
&'r mut Recognizer<'g, F>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more