Struct lrpar::ParseError [−][src]
pub struct ParseError<StorageT: Hash> { /* fields omitted */ }
Expand description
Records a single parse error.
Implementations
impl<StorageT: Hash + PrimInt + Unsigned> ParseError<StorageT>
[src]
impl<StorageT: Hash + PrimInt + Unsigned> ParseError<StorageT>
[src]pub fn repairs(&self) -> &Vec<Vec<ParseRepair<StorageT>>>
[src]
pub fn repairs(&self) -> &Vec<Vec<ParseRepair<StorageT>>>
[src]Return the repairs found that would fix this error. Note that there are infinite number of possible repairs for any error, so this is by definition a (finite) subset.
Trait Implementations
impl<StorageT: Clone + Hash> Clone for ParseError<StorageT>
[src]
impl<StorageT: Clone + Hash> Clone for ParseError<StorageT>
[src]fn clone(&self) -> ParseError<StorageT>
[src]
fn clone(&self) -> ParseError<StorageT>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<StorageT: Debug + Hash> Debug for ParseError<StorageT>
[src]
impl<StorageT: Debug + Hash> Debug for ParseError<StorageT>
[src]impl<StorageT: Debug + Hash> Display for ParseError<StorageT>
[src]
impl<StorageT: Debug + Hash> Display for ParseError<StorageT>
[src]impl<StorageT: Debug + Hash> Error for ParseError<StorageT>
[src]
impl<StorageT: Debug + Hash> Error for ParseError<StorageT>
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl<StorageT: Hash> From<ParseError<StorageT>> for LexParseError<StorageT>
[src]
impl<StorageT: Hash> From<ParseError<StorageT>> for LexParseError<StorageT>
[src]fn from(err: ParseError<StorageT>) -> LexParseError<StorageT>
[src]
fn from(err: ParseError<StorageT>) -> LexParseError<StorageT>
[src]Performs the conversion.
impl<StorageT: PartialEq + Hash> PartialEq<ParseError<StorageT>> for ParseError<StorageT>
[src]
impl<StorageT: PartialEq + Hash> PartialEq<ParseError<StorageT>> for ParseError<StorageT>
[src]fn eq(&self, other: &ParseError<StorageT>) -> bool
[src]
fn eq(&self, other: &ParseError<StorageT>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ParseError<StorageT>) -> bool
[src]
fn ne(&self, other: &ParseError<StorageT>) -> bool
[src]This method tests for !=
.
impl<StorageT: Hash> StructuralPartialEq for ParseError<StorageT>
[src]
Auto Trait Implementations
impl<StorageT> RefUnwindSafe for ParseError<StorageT> where
StorageT: RefUnwindSafe,
StorageT: RefUnwindSafe,
impl<StorageT> Send for ParseError<StorageT> where
StorageT: Send,
StorageT: Send,
impl<StorageT> Sync for ParseError<StorageT> where
StorageT: Sync,
StorageT: Sync,
impl<StorageT> Unpin for ParseError<StorageT> where
StorageT: Unpin,
StorageT: Unpin,
impl<StorageT> UnwindSafe for ParseError<StorageT> where
StorageT: UnwindSafe,
StorageT: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more