Enum perplex::item_set::Action [−][src]
An action to be taken upon encountering a symbol.
Variants
Shift(ItemSetId)
Shift the symbol and go to the given item set.
Reduce(RuleId)
Reduce with the given rule.
Methods
impl Action
[src]
impl Action
pub fn is_shift(&self) -> bool
[src]
pub fn is_shift(&self) -> bool
Whether this is a shift action.
pub fn is_reduce(&self) -> bool
[src]
pub fn is_reduce(&self) -> bool
Whether this is a reduce action.
Trait Implementations
impl Debug for Action
[src]
impl Debug for Action
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Action
[src]
impl Copy for Action
impl Clone for Action
[src]
impl Clone for Action
fn clone(&self) -> Action
[src]
fn clone(&self) -> Action
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 PartialEq for Action
[src]
impl PartialEq for Action
fn eq(&self, other: &Action) -> bool
[src]
fn eq(&self, other: &Action) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Action) -> bool
[src]
fn ne(&self, other: &Action) -> bool
This method tests for !=
.
impl Eq for Action
[src]
impl Eq for Action
impl Hash for Action
[src]
impl Hash for Action
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Display for Action
[src]
impl Display for Action