Enum rustlr::Stateaction
source · [−]Expand description
this enum is only exported because it’s used by the generated parsers. There is no reason to use it in other programs.
Variants
Shift(usize)
Reduce(usize)
Gotonext(usize)
Accept
Error(&'static str)
note: this has been changed after version 0.1.1 from String to &’static str for increased efficiency. Error action entries are not generated by rustlr: they can only be added with the parser’s training capability. Parsers already trained can be hand-modified by removing all instances of “.to_string()” from the load_extras function.
Trait Implementations
sourceimpl Clone for Stateaction
impl Clone for Stateaction
sourcefn clone(&self) -> Stateaction
fn clone(&self) -> Stateaction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Stateaction
impl Debug for Stateaction
sourceimpl PartialEq<Stateaction> for Stateaction
impl PartialEq<Stateaction> for Stateaction
sourcefn eq(&self, other: &Stateaction) -> bool
fn eq(&self, other: &Stateaction) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Stateaction) -> bool
fn ne(&self, other: &Stateaction) -> bool
This method tests for !=
.
impl Copy for Stateaction
impl Eq for Stateaction
impl StructuralEq for Stateaction
impl StructuralPartialEq for Stateaction
Auto Trait Implementations
impl RefUnwindSafe for Stateaction
impl Send for Stateaction
impl Sync for Stateaction
impl Unpin for Stateaction
impl UnwindSafe for Stateaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more