Enum lrpar::ParseRepair [−][src]
pub enum ParseRepair<StorageT: Hash> { Insert(TIdx<StorageT>), Delete(Lexeme<StorageT>), Shift(Lexeme<StorageT>), }
Expand description
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>)
Expand description
Insert a Symbol::Token
.
Delete(Lexeme<StorageT>)
Expand description
Delete a symbol.
Shift(Lexeme<StorageT>)
Expand description
Shift a symbol.
Trait Implementations
impl<StorageT: Clone + Hash> Clone for ParseRepair<StorageT>
[src]
impl<StorageT: Clone + Hash> Clone for ParseRepair<StorageT>
[src]fn clone(&self) -> ParseRepair<StorageT>
[src]
fn clone(&self) -> ParseRepair<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 ParseRepair<StorageT>
[src]
impl<StorageT: Debug + Hash> Debug for ParseRepair<StorageT>
[src]impl<StorageT: Hash> Hash for ParseRepair<StorageT>
[src]
impl<StorageT: Hash> Hash for ParseRepair<StorageT>
[src]impl<StorageT: PartialEq + Hash> PartialEq<ParseRepair<StorageT>> for ParseRepair<StorageT>
[src]
impl<StorageT: PartialEq + Hash> PartialEq<ParseRepair<StorageT>> for ParseRepair<StorageT>
[src]fn eq(&self, other: &ParseRepair<StorageT>) -> bool
[src]
fn eq(&self, other: &ParseRepair<StorageT>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ParseRepair<StorageT>) -> bool
[src]
fn ne(&self, other: &ParseRepair<StorageT>) -> bool
[src]This method tests for !=
.
impl<StorageT: Eq + Hash> Eq for ParseRepair<StorageT>
[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,
StorageT: RefUnwindSafe,
impl<StorageT> Send for ParseRepair<StorageT> where
StorageT: Send,
StorageT: Send,
impl<StorageT> Sync for ParseRepair<StorageT> where
StorageT: Sync,
StorageT: Sync,
impl<StorageT> Unpin for ParseRepair<StorageT> where
StorageT: Unpin,
StorageT: Unpin,
impl<StorageT> UnwindSafe for ParseRepair<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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
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