Enum sndjvu_format::parsing::Progress
source · pub enum Progress<T, N = Never> {
None {
hint: Option<usize>,
},
Advanced {
head: T,
by: usize,
},
End(N),
}
Expand description
The outcome of a parsing operation, if no Error
was encountered.
Variants§
None
Not enough data was presented to complete the parsing operation.
Advanced
Fields
§
head: T
The parsed object.
Parsing was successful.
End(N)
Nothing remains to be parsed.
If N
is uninhabited (see Never
), this variant cannot be constructed.
Trait Implementations§
Auto Trait Implementations§
impl<T, N> RefUnwindSafe for Progress<T, N>where
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, N> Send for Progress<T, N>
impl<T, N> Sync for Progress<T, N>
impl<T, N> Unpin for Progress<T, N>
impl<T, N> UnwindSafe for Progress<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