Struct amq_protocol_types::parsing::ParserErrors
source · pub struct ParserErrors { /* private fields */ }
Expand description
Struct holding the errors stack
Trait Implementations§
source§impl Clone for ParserErrors
impl Clone for ParserErrors
source§fn clone(&self) -> ParserErrors
fn clone(&self) -> ParserErrors
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<I> ContextError<I> for ParserErrors
impl<I> ContextError<I> for ParserErrors
source§fn add_context(_input: I, ctx: &'static str, other: Self) -> Self
fn add_context(_input: I, 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 Debug for ParserErrors
impl Debug for ParserErrors
source§impl Display for ParserErrors
impl Display for ParserErrors
source§impl Error for ParserErrors
impl Error for ParserErrors
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<I, E> FromExternalError<I, E> for ParserErrors
impl<I, E> FromExternalError<I, E> for ParserErrors
source§fn from_external_error(input: I, kind: ErrorKind, _e: E) -> Self
fn from_external_error(input: I, kind: ErrorKind, _e: E) -> Self
Creates a new error from an input position, an ErrorKind indicating the
wrapping parser, and an external error
source§impl<I> ParseError<I> for ParserErrors
impl<I> ParseError<I> for ParserErrors
source§fn from_error_kind(_input: I, kind: ErrorKind) -> Self
fn from_error_kind(_input: I, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
source§fn append(_input: I, kind: ErrorKind, other: Self) -> Self
fn append(_input: I, 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§impl PartialEq for ParserErrors
impl PartialEq for ParserErrors
source§fn eq(&self, other: &ParserErrors) -> bool
fn eq(&self, other: &ParserErrors) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ParserErrors
Auto Trait Implementations§
impl Freeze for ParserErrors
impl RefUnwindSafe for ParserErrors
impl Send for ParserErrors
impl Sync for ParserErrors
impl Unpin for ParserErrors
impl UnwindSafe for ParserErrors
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