Struct rusty_lr::ShiftedRuleRef
source · pub struct ShiftedRuleRef {
pub rule: usize,
pub shifted: usize,
}Expand description
A struct for single shifted named production rule.
name -> Token1 Token2 . Token3
^^^^^^^^^^^^^ shifted = 2This struct has index of the Rule in Grammar::rules and it will be used for Eq, Ord, Hash
Fields§
§rule: usize§shifted: usizeTrait Implementations§
source§impl Clone for ShiftedRuleRef
impl Clone for ShiftedRuleRef
source§fn clone(&self) -> ShiftedRuleRef
fn clone(&self) -> ShiftedRuleRef
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 ShiftedRuleRef
impl Debug for ShiftedRuleRef
source§impl Ord for ShiftedRuleRef
impl Ord for ShiftedRuleRef
source§fn cmp(&self, other: &ShiftedRuleRef) -> Ordering
fn cmp(&self, other: &ShiftedRuleRef) -> 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 for ShiftedRuleRef
impl PartialEq for ShiftedRuleRef
source§impl PartialOrd for ShiftedRuleRef
impl PartialOrd for ShiftedRuleRef
impl Eq for ShiftedRuleRef
impl StructuralPartialEq for ShiftedRuleRef
Auto Trait Implementations§
impl Freeze for ShiftedRuleRef
impl RefUnwindSafe for ShiftedRuleRef
impl Send for ShiftedRuleRef
impl Sync for ShiftedRuleRef
impl Unpin for ShiftedRuleRef
impl UnwindSafe for ShiftedRuleRef
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)