pub enum ParseCompletion {
Complete,
Incomplete(usize),
}Expand description
Indicates how much of the input was used by a call to Parse::parse_max.
Variants§
Complete
The result used all of the input.
Incomplete(usize)
The result used some of the input. The number of lexemes used is stored as the data here.
Trait Implementations§
Source§impl Clone for ParseCompletion
impl Clone for ParseCompletion
Source§fn clone(&self) -> ParseCompletion
fn clone(&self) -> ParseCompletion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParseCompletion
impl Debug for ParseCompletion
Source§impl PartialEq for ParseCompletion
impl PartialEq for ParseCompletion
impl Copy for ParseCompletion
impl Eq for ParseCompletion
impl StructuralPartialEq for ParseCompletion
Auto Trait Implementations§
impl Freeze for ParseCompletion
impl RefUnwindSafe for ParseCompletion
impl Send for ParseCompletion
impl Sync for ParseCompletion
impl Unpin for ParseCompletion
impl UnwindSafe for ParseCompletion
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