pub struct ProdIdx {
pub lhs: Node,
pub index: u16,
}
Expand description
Handle to a production in the Grammar
.
The left-hand side may be retrieved directly. However, to get the right-hand
side, one will need to call Grammar::get_rhs
.
Fields§
§lhs: Node
Left-hand side of the production.
index: u16
Index of the right-hand side of the production in
grammar.productions[lhs]
.
Trait Implementations§
source§impl Ord for ProdIdx
impl Ord for ProdIdx
source§impl PartialEq<ProdIdx> for ProdIdx
impl PartialEq<ProdIdx> for ProdIdx
source§impl PartialOrd<ProdIdx> for ProdIdx
impl PartialOrd<ProdIdx> for ProdIdx
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 ProdIdx
impl Eq for ProdIdx
impl StructuralEq for ProdIdx
impl StructuralPartialEq for ProdIdx
Auto Trait Implementations§
impl RefUnwindSafe for ProdIdx
impl Send for ProdIdx
impl Sync for ProdIdx
impl Unpin for ProdIdx
impl UnwindSafe for ProdIdx
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