[−][src]Enum lrpar::ParseRepair
After a parse error is encountered, the parser attempts to find a way of recovering. Each entry
in the sequence of repairs is represented by a ParseRepair
.
Variants
Insert(TIdx<StorageT>)
Insert a Symbol::Token
.
Delete(Lexeme<StorageT>)
Delete a symbol.
Shift(Lexeme<StorageT>)
Shift a symbol.
Trait Implementations
impl<StorageT: Clone + Hash> Clone for ParseRepair<StorageT>
[src]
fn clone(&self) -> ParseRepair<StorageT>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<StorageT: Debug + Hash> Debug for ParseRepair<StorageT>
[src]
impl<StorageT: Eq + Hash> Eq for ParseRepair<StorageT>
[src]
impl<StorageT: Hash> Hash for ParseRepair<StorageT>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<StorageT: PartialEq + Hash> PartialEq<ParseRepair<StorageT>> for ParseRepair<StorageT>
[src]
fn eq(&self, other: &ParseRepair<StorageT>) -> bool
[src]
fn ne(&self, other: &ParseRepair<StorageT>) -> bool
[src]
impl<StorageT: Hash> StructuralEq for ParseRepair<StorageT>
[src]
impl<StorageT: Hash> StructuralPartialEq for ParseRepair<StorageT>
[src]
Auto Trait Implementations
impl<StorageT> RefUnwindSafe for ParseRepair<StorageT> where
StorageT: RefUnwindSafe,
[src]
StorageT: RefUnwindSafe,
impl<StorageT> Send for ParseRepair<StorageT> where
StorageT: Send,
[src]
StorageT: Send,
impl<StorageT> Sync for ParseRepair<StorageT> where
StorageT: Sync,
[src]
StorageT: Sync,
impl<StorageT> Unpin for ParseRepair<StorageT> where
StorageT: Unpin,
[src]
StorageT: Unpin,
impl<StorageT> UnwindSafe for ParseRepair<StorageT> where
StorageT: UnwindSafe,
[src]
StorageT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,