pub struct DeserializeError<'a> {
pub(crate) errors: VecDeque<(&'a [u8], String)>,
}Fields§
§errors: VecDeque<(&'a [u8], String)>Trait Implementations§
Source§impl<'a> Clone for DeserializeError<'a>
impl<'a> Clone for DeserializeError<'a>
Source§fn clone(&self) -> DeserializeError<'a>
fn clone(&self) -> DeserializeError<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> ContextError<&'a [u8]> for DeserializeError<'a>
impl<'a> ContextError<&'a [u8]> for DeserializeError<'a>
Source§fn add_context(input: &'a [u8], ctx: &'static str, other: Self) -> Self
fn add_context(input: &'a [u8], ctx: &'static str, other: Self) -> Self
Creates a new error from an input position, a static string and an existing error.
This is used mainly in the [context] combinator, to add user friendly information
to errors when backtracking through a parse tree
Source§impl<'a> Debug for DeserializeError<'a>
impl<'a> Debug for DeserializeError<'a>
Source§impl<'a> Display for DeserializeError<'a>
impl<'a> Display for DeserializeError<'a>
Source§impl<'a> Error for DeserializeError<'a>
impl<'a> Error for DeserializeError<'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> ParseError<&'a [u8]> for DeserializeError<'a>
impl<'a> ParseError<&'a [u8]> for DeserializeError<'a>
Source§fn append(input: &'a [u8], kind: ErrorKind, other: Self) -> Self
fn append(input: &'a [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
Source§fn from_error_kind(input: &'a [u8], kind: ErrorKind) -> Self
fn from_error_kind(input: &'a [u8], kind: ErrorKind) -> Self
Creates an error from the input position and an [ErrorKind]
Auto Trait Implementations§
impl<'a> Freeze for DeserializeError<'a>
impl<'a> RefUnwindSafe for DeserializeError<'a>
impl<'a> Send for DeserializeError<'a>
impl<'a> Sync for DeserializeError<'a>
impl<'a> Unpin for DeserializeError<'a>
impl<'a> UnwindSafe for DeserializeError<'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