pub struct MapParserError<'a, P>where
P: Parser<'a>,{ /* private fields */ }
Implementations§
Source§impl<'a, P> MapParserError<'a, P>where
P: Parser<'a>,
impl<'a, P> MapParserError<'a, P>where
P: Parser<'a>,
pub fn new( from: usize, requirement: MapParserRequirement<'a, P>, cause: P::Error, ) -> Self
Trait Implementations§
Source§impl<'a, P> Debug for MapParserError<'a, P>
impl<'a, P> Debug for MapParserError<'a, P>
Source§impl<'a, P> Display for MapParserError<'a, P>where
P: Parser<'a>,
impl<'a, P> Display for MapParserError<'a, P>where
P: Parser<'a>,
Source§impl<'a, P> Error for MapParserError<'a, P>where
P: Parser<'a>,
impl<'a, P> Error for MapParserError<'a, P>where
P: Parser<'a>,
fn from(&self, f: &mut Formatter<'_>) -> FmtResult
fn requirement(&self, f: &mut Formatter<'_>) -> FmtResult
fn result(&self, f: &mut Formatter<'_>) -> FmtResult
fn causes(&self, f: &mut Formatter<'_>, depth: usize) -> FmtResult
fn print(&self, f: &mut Formatter<'_>, depth: usize) -> FmtResult
fn print_full(&self, f: &mut Formatter<'_>, depth: usize) -> FmtResult
Auto Trait Implementations§
impl<'a, P> Freeze for MapParserError<'a, P>
impl<'a, P> RefUnwindSafe for MapParserError<'a, P>
impl<'a, P> Send for MapParserError<'a, P>
impl<'a, P> Sync for MapParserError<'a, P>
impl<'a, P> Unpin for MapParserError<'a, P>
impl<'a, P> UnwindSafe for MapParserError<'a, P>
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