pub struct UriParseError { /* private fields */ }
Expand description
Custom parse error type.
Trait Implementations§
Source§impl ContextError<Elms<'_>> for UriParseError
impl ContextError<Elms<'_>> for UriParseError
Source§impl Debug for UriParseError
impl Debug for UriParseError
Source§impl ParseError<Elms<'_>> for UriParseError
impl ParseError<Elms<'_>> for UriParseError
Source§fn from_error_kind(input: Elms<'_>, kind: ErrorKind) -> Self
fn from_error_kind(input: Elms<'_>, kind: ErrorKind) -> Self
Creates an error from the input position and an ErrorKind
Source§fn append(input: Elms<'_>, kind: ErrorKind, other: Self) -> Self
fn append(input: Elms<'_>, 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 UriParseError
impl PartialEq for UriParseError
impl StructuralPartialEq for UriParseError
Auto Trait Implementations§
impl Freeze for UriParseError
impl RefUnwindSafe for UriParseError
impl Send for UriParseError
impl Sync for UriParseError
impl Unpin for UriParseError
impl UnwindSafe for UriParseError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more