pub struct ParserError<'a> {
pub input: &'a [u8],
pub kind: ParserErrorKind,
}Fields§
§input: &'a [u8]§kind: ParserErrorKindImplementations§
Source§impl<'a> ParserError<'a>
impl<'a> ParserError<'a>
pub fn new(input: &'a [u8], error: ParserErrorKind) -> ParserError<'a>
pub fn new_h2(input: &'a [u8], error: H2Error) -> ParserError<'a>
Trait Implementations§
Source§impl<'a> Clone for ParserError<'a>
impl<'a> Clone for ParserError<'a>
Source§fn clone(&self) -> ParserError<'a>
fn clone(&self) -> ParserError<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for ParserError<'a>
impl<'a> Debug for ParserError<'a>
Source§impl<'a> ParseError<&'a [u8]> for ParserError<'a>
impl<'a> ParseError<&'a [u8]> for ParserError<'a>
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
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§impl<'a> PartialEq for ParserError<'a>
impl<'a> PartialEq for ParserError<'a>
Source§fn eq(&self, other: &ParserError<'a>) -> bool
fn eq(&self, other: &ParserError<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for ParserError<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParserError<'a>
impl<'a> RefUnwindSafe for ParserError<'a>
impl<'a> Send for ParserError<'a>
impl<'a> Sync for ParserError<'a>
impl<'a> Unpin for ParserError<'a>
impl<'a> UnsafeUnpin for ParserError<'a>
impl<'a> UnwindSafe for ParserError<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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