pub struct DebugModel {
pub tag: String,
pub tokens: Vec<DebugTokenInfo>,
pub token_sets: Vec<DebugTokenSet>,
pub rules: Vec<DebugRuleInfo>,
pub graph: Vec<DebugRuleEdges>,
pub lexer: Vec<DebugLexMatcher>,
pub config: DebugConfigInfo,
pub plugins: Vec<DebugPluginInfo>,
pub abnf: String,
}Expand description
The full structured description of an instance: the token table, token sets, rules and alternates as data, the rule-reference graph, lexer matchers, config, plugins, and the ABNF text.
Fields§
§tag: StringInstance tag; the engine’s default (-) when unset.
tokens: Vec<DebugTokenInfo>The token table.
token_sets: Vec<DebugTokenSet>Named token sets.
rules: Vec<DebugRuleInfo>Rules and their alternates.
graph: Vec<DebugRuleEdges>Per-rule push/replace edges.
lexer: Vec<DebugLexMatcher>Lexer matchers, priority order.
config: DebugConfigInfoKey parser settings.
plugins: Vec<DebugPluginInfo>Applied plugins.
abnf: StringThe re-compilable ABNF rendering of the live grammar.
Trait Implementations§
Source§impl Clone for DebugModel
impl Clone for DebugModel
Source§impl Debug for DebugModel
impl Debug for DebugModel
Source§impl PartialEq for DebugModel
impl PartialEq for DebugModel
Source§impl Serialize for DebugModel
impl Serialize for DebugModel
impl StructuralPartialEq for DebugModel
Auto Trait Implementations§
impl Freeze for DebugModel
impl RefUnwindSafe for DebugModel
impl Send for DebugModel
impl Sync for DebugModel
impl Unpin for DebugModel
impl UnsafeUnpin for DebugModel
impl UnwindSafe for DebugModel
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