pub enum Parsing<T, N = ()> {
Done {
value: T,
offset: usize,
},
NeedMore(N),
}Expand description
A parsing result.
Variants§
Done
Parsing completed.
Fields
§
value: TThe parsed value.
NeedMore(N)
Parsing is incomplete and needs more data.
Trait Implementations§
Auto Trait Implementations§
impl<T, N> Freeze for Parsing<T, N>
impl<T, N> RefUnwindSafe for Parsing<T, N>where
T: RefUnwindSafe,
N: RefUnwindSafe,
impl<T, N> Send for Parsing<T, N>
impl<T, N> Sync for Parsing<T, N>
impl<T, N> Unpin for Parsing<T, N>
impl<T, N> UnwindSafe for Parsing<T, N>where
T: UnwindSafe,
N: UnwindSafe,
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