pub struct NWNParseError { /* private fields */ }Implementations§
Source§impl NWNParseError
impl NWNParseError
pub fn new(err: NWNParseErrorEnum) -> Self
pub fn from_str(message: &str) -> Self
pub fn from_string(message: String) -> Self
pub fn add_context_msg(self, message: String) -> Self
pub fn push(&mut self, err: NWNParseErrorEnum)
pub fn into_nom_err(self) -> Err<Self>
Trait Implementations§
Source§impl ContextError<&[u8]> for NWNParseError
impl ContextError<&[u8]> for NWNParseError
Source§impl Debug for NWNParseError
impl Debug for NWNParseError
Source§impl Display for NWNParseError
impl Display for NWNParseError
Source§impl From<&str> for NWNParseError
impl From<&str> for NWNParseError
Source§impl From<Err<VerboseError<Vec<u8>>>> for NWNParseError
impl From<Err<VerboseError<Vec<u8>>>> for NWNParseError
Source§impl From<String> for NWNParseError
impl From<String> for NWNParseError
Source§impl From<Utf8Error> for NWNParseError
impl From<Utf8Error> for NWNParseError
Source§impl<ExternalError: Display> FromExternalError<Vec<u8>, ExternalError> for NWNParseError
impl<ExternalError: Display> FromExternalError<Vec<u8>, ExternalError> for NWNParseError
Source§impl ParseError<&[u8]> for NWNParseError
impl ParseError<&[u8]> for NWNParseError
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 Freeze for NWNParseError
impl RefUnwindSafe for NWNParseError
impl Send for NWNParseError
impl Sync for NWNParseError
impl Unpin for NWNParseError
impl UnwindSafe for NWNParseError
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