pub enum Stateaction {
Shift(usize),
Reduce(usize),
Gotonext(usize),
Accept,
Error(&'static str),
}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§
Source§impl Clone for Stateaction
impl Clone for Stateaction
Source§fn clone(&self) -> Stateaction
fn clone(&self) -> Stateaction
Returns a duplicate 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 moreSource§impl Debug for Stateaction
impl Debug for Stateaction
Source§impl PartialEq for Stateaction
impl PartialEq for Stateaction
impl Copy for Stateaction
impl Eq for Stateaction
impl StructuralPartialEq for Stateaction
Auto Trait Implementations§
impl Freeze for Stateaction
impl RefUnwindSafe for Stateaction
impl Send for Stateaction
impl Sync for Stateaction
impl Unpin for Stateaction
impl UnwindSafe for Stateaction
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