pub struct Rule {
pub rhs: Vec<Symbol>,
pub history_id: HistoryId,
/* private fields */
}
Expand description
Typical grammar rule representation.
Fields§
§rhs: Vec<Symbol>
The rule’s right-hand side.
history_id: HistoryId
The rule’s history.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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