Enum gramatica::EarleyKind
source · pub enum EarleyKind {
Complete(usize, usize, usize),
Scan(usize, usize),
Predict(usize),
}
Expand description
Record on how a state was produced.
Variants§
Complete(usize, usize, usize)
State created by advancing state self.2 from set self.1 by completing the state self.0.
Scan(usize, usize)
State created by a scan procedure while advancing over token self.0 and while in state self.1.
Predict(usize)
State created by expanding a grammar rule while in state self.0.
Trait Implementations§
source§impl Clone for EarleyKind
impl Clone for EarleyKind
source§fn clone(&self) -> EarleyKind
fn clone(&self) -> EarleyKind
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 moreAuto Trait Implementations§
impl RefUnwindSafe for EarleyKind
impl Send for EarleyKind
impl Sync for EarleyKind
impl Unpin for EarleyKind
impl UnwindSafe for EarleyKind
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