pub struct Error<'a> {
pub input: &'a str,
pub code: ErrorKind,
pub message: Option<String>,
}Fields§
§input: &'a str§code: ErrorKind§message: Option<String>Trait Implementations§
Source§impl<'a> Error for Error<'a>
impl<'a> Error for Error<'a>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<'a> From<Error<'a>> for LanguageError
impl<'a> From<Error<'a>> for LanguageError
Source§impl<'a> From<Error<'a>> for ParseError
impl<'a> From<Error<'a>> for ParseError
Source§impl<'a> From<Error<'a>> for ParseErrors
impl<'a> From<Error<'a>> for ParseErrors
Source§impl<'a, E> FromExternalError<&'a str, E> for Error<'a>
impl<'a, E> FromExternalError<&'a str, E> for Error<'a>
Source§impl<'a> ParseError<&'a str> for Error<'a>
impl<'a> ParseError<&'a str> for Error<'a>
Source§fn from_error_kind(input: &'a str, kind: ErrorKind) -> Self
fn from_error_kind(input: &'a str, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(_: &'a str, _: ErrorKind, other: Self) -> Self
fn append(_: &'a str, _: 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
impl<'a> Eq for Error<'a>
impl<'a> StructuralPartialEq for Error<'a>
Auto Trait Implementations§
impl<'a> Freeze for Error<'a>
impl<'a> RefUnwindSafe for Error<'a>
impl<'a> Send for Error<'a>
impl<'a> Sync for Error<'a>
impl<'a> Unpin for Error<'a>
impl<'a> UnwindSafe for Error<'a>
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