Enum ielr::input::ConflictingAction
source · pub enum ConflictingAction {
AnyShift,
Shift(Lookahead),
AnyReduce,
Reduce(ProdIdx),
ReduceNode(Node),
}
Expand description
One of the possible actions in ConflictSolution
.
Variants§
AnyShift
Matches any ‘shift’ action.
Shift(Lookahead)
Matches a ‘shift’ action on the given lookahead.
AnyReduce
Matches any ‘reduce’ action.
Reduce(ProdIdx)
Matches a ‘reduce’ action on the given production.
ReduceNode(Node)
Matches a ‘reduce’ action on any production that has the given node as left-hand side.
Trait Implementations§
source§impl Clone for ConflictingAction
impl Clone for ConflictingAction
source§fn clone(&self) -> ConflictingAction
fn clone(&self) -> ConflictingAction
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 moresource§impl Debug for ConflictingAction
impl Debug for ConflictingAction
source§impl Hash for ConflictingAction
impl Hash for ConflictingAction
source§impl Ord for ConflictingAction
impl Ord for ConflictingAction
source§fn cmp(&self, other: &ConflictingAction) -> Ordering
fn cmp(&self, other: &ConflictingAction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<ConflictingAction> for ConflictingAction
impl PartialEq<ConflictingAction> for ConflictingAction
source§fn eq(&self, other: &ConflictingAction) -> bool
fn eq(&self, other: &ConflictingAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConflictingAction> for ConflictingAction
impl PartialOrd<ConflictingAction> for ConflictingAction
source§fn partial_cmp(&self, other: &ConflictingAction) -> Option<Ordering>
fn partial_cmp(&self, other: &ConflictingAction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ConflictingAction
impl Eq for ConflictingAction
impl StructuralEq for ConflictingAction
impl StructuralPartialEq for ConflictingAction
Auto Trait Implementations§
impl RefUnwindSafe for ConflictingAction
impl Send for ConflictingAction
impl Sync for ConflictingAction
impl Unpin for ConflictingAction
impl UnwindSafe for ConflictingAction
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