pub struct ParseError<A> {
pub expected: Vec<Cow<'static, str>>,
pub actual: A,
pub location: ErrorLocation,
}
Fields§
§expected: Vec<Cow<'static, str>>
§actual: A
§location: ErrorLocation
Implementations§
Source§impl<A> ParseError<A>
impl<A> ParseError<A>
pub const fn new( expected: Vec<Cow<'static, str>>, actual: A, location: ErrorLocation, ) -> ParseError<A>
Source§impl<A> ParseError<A>
impl<A> ParseError<A>
pub fn map<B>(self, f: impl FnOnce(A) -> B) -> ParseError<B>
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for ParseError<A>where
A: Freeze,
impl<A> RefUnwindSafe for ParseError<A>where
A: RefUnwindSafe,
impl<A> Send for ParseError<A>where
A: Send,
impl<A> Sync for ParseError<A>where
A: Sync,
impl<A> Unpin for ParseError<A>where
A: Unpin,
impl<A> UnwindSafe for ParseError<A>where
A: UnwindSafe,
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