pub struct PrettyParseError<'a> {
pub error: ParseError,
pub input: &'a str,
pub remaining: &'a str,
}
Expand description
Parser error that can print itself in a human-readable format.
Fields§
§error: ParseError
Inner error
input: &'a str
Input to the parser
remaining: &'a str
Remaining input after partially tokenizing
Trait Implementations§
Source§impl<'a> Clone for PrettyParseError<'a>
impl<'a> Clone for PrettyParseError<'a>
Source§fn clone(&self) -> PrettyParseError<'a>
fn clone(&self) -> PrettyParseError<'a>
Returns a copy of the value. Read more
1.0.0 · 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 PrettyParseError<'a>
impl<'a> Debug for PrettyParseError<'a>
Source§impl<'a> PartialEq for PrettyParseError<'a>
impl<'a> PartialEq for PrettyParseError<'a>
impl<'a> StructuralPartialEq for PrettyParseError<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrettyParseError<'a>
impl<'a> RefUnwindSafe for PrettyParseError<'a>
impl<'a> Send for PrettyParseError<'a>
impl<'a> Sync for PrettyParseError<'a>
impl<'a> Unpin for PrettyParseError<'a>
impl<'a> UnwindSafe for PrettyParseError<'a>
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