Struct astray::ParseError
source · pub struct ParseError<T>where
T: ConsumableToken,{
pub failure_type: ParseErrorType<T>,
/* private fields */
}Fields§
§failure_type: ParseErrorType<T>Implementations§
source§impl<T> ParseError<T>where
T: ConsumableToken,
impl<T> ParseError<T>where T: ConsumableToken,
pub fn new<P>( failed_at: usize, failure_type: ParseErrorType<T> ) -> ParseError<T>where P: Parsable<T>,
pub fn parsed_but_unmatching<P>( failed_at: usize, result: &P, pattern: Option<&'static str> ) -> ParseError<T>where P: Parsable<T>,
pub fn no_more_tokens<P>(failed_at: usize) -> ParseError<T>where P: Parsable<T>,
pub fn from_conjunct_error<P>(other: ParseError<T>) -> ParseError<T>where P: Parsable<T>,
pub fn from_disjunct_errors<P>( failed_at: usize, err_source: Vec<ParseError<T>, Global> ) -> ParseError<T>where P: Parsable<T>,
pub fn to_string(&self, indentation_level: usize) -> String
Trait Implementations§
source§impl<T> Clone for ParseError<T>where
T: Clone + ConsumableToken,
impl<T> Clone for ParseError<T>where T: Clone + ConsumableToken,
source§fn clone(&self) -> ParseError<T>
fn clone(&self) -> ParseError<T>
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<T> Debug for ParseError<T>where
T: Debug + ConsumableToken,
impl<T> Debug for ParseError<T>where T: Debug + ConsumableToken,
source§impl<T> PartialEq<ParseError<T>> for ParseError<T>where
T: PartialEq<T> + ConsumableToken,
impl<T> PartialEq<ParseError<T>> for ParseError<T>where T: PartialEq<T> + ConsumableToken,
source§fn eq(&self, other: &ParseError<T>) -> bool
fn eq(&self, other: &ParseError<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Eq for ParseError<T>where T: Eq + ConsumableToken,
impl<T> StructuralEq for ParseError<T>where T: ConsumableToken,
impl<T> StructuralPartialEq for ParseError<T>where T: ConsumableToken,
Auto Trait Implementations§
impl<T> RefUnwindSafe for ParseError<T>where T: RefUnwindSafe,
impl<T> Send for ParseError<T>where T: Send,
impl<T> Sync for ParseError<T>where T: Sync,
impl<T> Unpin for ParseError<T>where T: Unpin,
impl<T> UnwindSafe for ParseError<T>where T: 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