Struct massa_serialization::DeserializeError
source · 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 copy 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)>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)