pub struct RuleRef {
pub variable: usize,
pub index: usize,
}
Expand description
A reference to a grammar rule
Fields§
§variable: usize
The identifier of the variable
index: usize
The index of the rule for the variable
Implementations§
Trait Implementations§
impl Copy for RuleRef
impl Eq for RuleRef
impl StructuralPartialEq for RuleRef
Auto Trait Implementations§
impl Freeze for RuleRef
impl RefUnwindSafe for RuleRef
impl Send for RuleRef
impl Sync for RuleRef
impl Unpin for RuleRef
impl UnwindSafe for RuleRef
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