Struct kodept_parse::error::ParseError
source · 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: ErrorLocationImplementations§
source§impl<A> ParseError<A>
impl<A> ParseError<A>
pub fn new( expected: Vec<Cow<'static, str>>, actual: A, location: ErrorLocation, ) -> ParseError<A>
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