pub struct DynGramAlt {
pub badness: i16,
pub toks: Vec<DynGramTok>,
}Expand description
One way a phrase of a grammar production can be made up, as a rule compiled while the program runs gives it.
Fields§
§badness: i16How much worse than another it is ([badness 50]).
toks: Vec<DynGramTok>The things to match, in order.
Trait Implementations§
Source§impl Clone for DynGramAlt
impl Clone for DynGramAlt
Source§impl Debug for DynGramAlt
impl Debug for DynGramAlt
impl Eq for DynGramAlt
Source§impl PartialEq for DynGramAlt
impl PartialEq for DynGramAlt
impl StructuralPartialEq for DynGramAlt
Auto Trait Implementations§
impl Forget for DynGramAlt
impl Freeze for DynGramAlt
impl Move for DynGramAlt
impl RefUnwindSafe for DynGramAlt
impl Send for DynGramAltwhere
RawVecInner: Send,
impl Sync for DynGramAltwhere
RawVecInner: Sync,
impl Unpin for DynGramAlt
impl UnsafeUnpin for DynGramAlt
impl UnwindSafe for DynGramAltwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.