pub struct ParserPlan {
pub nodes: &'static [PlanNode],
pub template_parts: &'static [TemplatePartNode],
pub literals: &'static [&'static str],
pub root: u32,
}Expand description
A compiled parser plan: the node arena plus auxiliary interned data.
Fields§
§nodes: &'static [PlanNode]The flat node arena, indexed by PlanNode child references.
template_parts: &'static [TemplatePartNode]Template literal/capture parts, referenced by PlanNode::Template.
literals: &'static [&'static str]Interned string literals (separators, template literals), so the runtime
reads &'static str without touching Rust owned data.
root: u32The root node index (entry point).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParserPlan
impl RefUnwindSafe for ParserPlan
impl Send for ParserPlan
impl Sync for ParserPlan
impl Unpin for ParserPlan
impl UnsafeUnpin for ParserPlan
impl UnwindSafe for ParserPlan
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