pub enum ParsedRecord<T> {
Parsed(T),
Skipped,
Done,
}
Expand description
A type that encapsulates the successful result of a parsing operation.
Variants§
Parsed(T)
A record was successfully consumed and parsed.
Skipped
A record was consumed but not parsed for non-fatal reasons.
The caller should attempt to parse the next record to get a successfully parsed record.
An example of a record that is skippable is a record used for padding.
Done
All possible records have been already been consumed; there is nothing left to parse.
The behavior is unspecified if callers attempt to parse another record.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for ParsedRecord<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParsedRecord<T>where
T: RefUnwindSafe,
impl<T> Send for ParsedRecord<T>where
T: Send,
impl<T> Sync for ParsedRecord<T>where
T: Sync,
impl<T> Unpin for ParsedRecord<T>where
T: Unpin,
impl<T> UnwindSafe for ParsedRecord<T>where
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