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