Enum nom_mpq::error::MPQParserError
source · pub enum MPQParserError {
UnexpectedSection,
Parser(String),
}
Expand description
Error handling for upstream crates to use
Variants§
UnexpectedSection
A section magic was Unexpected
Parser(String)
This error does not use input: I
from ParserError
,
just to avoid carrying over the generic
Trait Implementations§
source§impl Debug for MPQParserError
impl Debug for MPQParserError
source§impl Display for MPQParserError
impl Display for MPQParserError
source§impl Error for MPQParserError
impl Error for MPQParserError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl ParseError<&[u8]> for MPQParserError
impl ParseError<&[u8]> for MPQParserError
source§fn from_error_kind(input: &[u8], kind: ErrorKind) -> Self
fn from_error_kind(input: &[u8], kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
source§fn append(_input: &[u8], _kind: ErrorKind, other: Self) -> Self
fn append(_input: &[u8], _kind: ErrorKind, other: Self) -> Self
Combines an existing error with a new one created from the input
position and an ErrorKind. This is useful when backtracking
through a parse tree, accumulating error context on the way
Auto Trait Implementations§
impl RefUnwindSafe for MPQParserError
impl Send for MPQParserError
impl Sync for MPQParserError
impl Unpin for MPQParserError
impl UnwindSafe for MPQParserError
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