Struct shrimple_parser::ParsingError
source · pub struct ParsingError<'rest, Expectation> { /* private fields */ }Implementations§
source§impl<'rest, Expectation> ParsingError<'rest, Expectation>
impl<'rest, Expectation> ParsingError<'rest, Expectation>
pub const fn new(rest: &'rest str, expected: Expectation) -> Self
pub const fn new_recoverable(rest: &'rest str) -> Self
pub const fn is_recoverable(&self) -> bool
pub fn expectation<NewExpectation>( self, expected: NewExpectation ) -> ParsingError<'rest, NewExpectation>
pub fn narrow_expectation<NewExpectation>( self, expected: NewExpectation ) -> ParsingError<'rest, NewExpectation>
pub fn with_src_loc<'path>( self, path: &'path Path, src: &str ) -> FullParsingError<'path, Expectation>
Trait Implementations§
source§impl<'rest, Expectation: Clone> Clone for ParsingError<'rest, Expectation>
impl<'rest, Expectation: Clone> Clone for ParsingError<'rest, Expectation>
source§fn clone(&self) -> ParsingError<'rest, Expectation>
fn clone(&self) -> ParsingError<'rest, Expectation>
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<'rest, Expectation: Debug> Debug for ParsingError<'rest, Expectation>
impl<'rest, Expectation: Debug> Debug for ParsingError<'rest, Expectation>
source§impl<'rest, Expectation: PartialEq> PartialEq for ParsingError<'rest, Expectation>
impl<'rest, Expectation: PartialEq> PartialEq for ParsingError<'rest, Expectation>
source§fn eq(&self, other: &ParsingError<'rest, Expectation>) -> bool
fn eq(&self, other: &ParsingError<'rest, Expectation>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'rest, Expectation: Copy> Copy for ParsingError<'rest, Expectation>
impl<'rest, Expectation: Eq> Eq for ParsingError<'rest, Expectation>
impl<'rest, Expectation> StructuralPartialEq for ParsingError<'rest, Expectation>
Auto Trait Implementations§
impl<'rest, Expectation> Freeze for ParsingError<'rest, Expectation>where
Expectation: Freeze,
impl<'rest, Expectation> RefUnwindSafe for ParsingError<'rest, Expectation>where
Expectation: RefUnwindSafe,
impl<'rest, Expectation> Send for ParsingError<'rest, Expectation>where
Expectation: Send,
impl<'rest, Expectation> Sync for ParsingError<'rest, Expectation>where
Expectation: Sync,
impl<'rest, Expectation> Unpin for ParsingError<'rest, Expectation>where
Expectation: Unpin,
impl<'rest, Expectation> UnwindSafe for ParsingError<'rest, Expectation>where
Expectation: 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