pub enum Parsing<T, N = ()> {
Done {
value: T,
offset: usize,
},
NeedMore(N),
}
Expand description
A parsing result.
Variants§
Done
Parsing completed.
Fields
§
value: T
The 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)