pub struct RuleRef<'a> {
pub lhs: Symbol,
pub rhs: &'a [Symbol],
pub history_id: HistoryId,
}
Expand description
References rule’s components.
Fields§
§lhs: Symbol
Left-hand side.
rhs: &'a [Symbol]
Right-hand side.
history_id: HistoryId
The rule’s history.
Trait Implementations§
source§impl<'a> GrammarRule for RuleRef<'a>
impl<'a> GrammarRule for RuleRef<'a>
impl<'a> Copy for RuleRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for RuleRef<'a>
impl<'a> Send for RuleRef<'a>
impl<'a> Sync for RuleRef<'a>
impl<'a> Unpin for RuleRef<'a>
impl<'a> UnwindSafe for RuleRef<'a>
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