Enum mac_parser::ParserError
source · pub enum ParserError {
TooLittleData(usize),
HeaderIncomplete(usize),
InvalidMagic,
ValueNotUnderstood,
}
Expand description
A generic error encountered while parsing.
Variants§
TooLittleData(usize)
The parser expected more data than it got.
HeaderIncomplete(usize)
Just like TooLittleData, but more specific.
InvalidMagic
The expected magic was invalid.
ValueNotUnderstood
A value wasn’t understood by the parser.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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