pub struct DebugAltInfo {
pub seq: Vec<DebugSeqItem>,
pub push: Option<String>,
pub replace: Option<String>,
pub back: Option<usize>,
pub counters: Option<BTreeMap<String, i32>>,
pub groups: Vec<String>,
pub action: bool,
pub cond: bool,
pub modifier: bool,
}Expand description
The structured form of a single rule alternate — the data behind the
ALTS text of crate::describe().
Fields§
§seq: Vec<DebugSeqItem>Token name(s) per lookahead position.
push: Option<String>p target rule (or <fn>).
replace: Option<String>r target rule (or <fn>).
back: Option<usize>b token push-back.
counters: Option<BTreeMap<String, i32>>n counter ops.
groups: Vec<String>g group tags.
action: boola present.
cond: boolc present.
modifier: boolh present.
Trait Implementations§
Source§impl Clone for DebugAltInfo
impl Clone for DebugAltInfo
Source§impl Debug for DebugAltInfo
impl Debug for DebugAltInfo
impl Eq for DebugAltInfo
Source§impl PartialEq for DebugAltInfo
impl PartialEq for DebugAltInfo
Source§impl Serialize for DebugAltInfo
impl Serialize for DebugAltInfo
impl StructuralPartialEq for DebugAltInfo
Auto Trait Implementations§
impl Forget for DebugAltInfo
impl Freeze for DebugAltInfowhere
*const u8 is !null: Freeze,
PhantomData<DebugSeqItem>: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, i32> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, i32)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for DebugAltInfo
impl RefUnwindSafe for DebugAltInfo
impl Send for DebugAltInfo
impl Sync for DebugAltInfo
impl Unpin for DebugAltInfo
impl UnsafeUnpin for DebugAltInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<DebugSeqItem>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, i32> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, i32)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for DebugAltInfo
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.