Struct programinduction::pcfg::AppliedRule
source · pub struct AppliedRule(pub Type, pub usize, pub Vec<AppliedRule>);
Expand description
Identifies a rule by its location in grammar.rules
.
Tuple Fields§
§0: Type
§1: usize
§2: Vec<AppliedRule>
Trait Implementations§
source§impl Clone for AppliedRule
impl Clone for AppliedRule
source§fn clone(&self) -> AppliedRule
fn clone(&self) -> AppliedRule
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 AppliedRule
impl Debug for AppliedRule
source§impl PartialEq for AppliedRule
impl PartialEq for AppliedRule
source§fn eq(&self, other: &AppliedRule) -> bool
fn eq(&self, other: &AppliedRule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AppliedRule
impl StructuralEq for AppliedRule
impl StructuralPartialEq for AppliedRule
Auto Trait Implementations§
impl RefUnwindSafe for AppliedRule
impl Send for AppliedRule
impl Sync for AppliedRule
impl Unpin for AppliedRule
impl UnwindSafe for AppliedRule
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.