pub enum LineNode<'a> {
Relation(RelationNode<'a>),
AdvExt(AdvExt<'a>),
}Expand description
A parsed plan line: either a relation or an advanced-extension annotation.
Classification happens at construction time by inspecting the inner grammar rule, so downstream code can use standard Rust pattern matching rather than runtime rule inspection.
Variants§
Relation(RelationNode<'a>)
AdvExt(AdvExt<'a>)
Implementations§
Source§impl<'a> LineNode<'a>
impl<'a> LineNode<'a>
pub fn parse(line: &'a str, line_no: i64) -> Result<Self, ParseError>
Sourcepub fn parse_root(line: &'a str, line_no: i64) -> Result<Self, ParseError>
pub fn parse_root(line: &'a str, line_no: i64) -> Result<Self, ParseError>
Parse the line as a top-level relation at depth 0 (either root_relation or regular relation)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LineNode<'a>
impl<'a> RefUnwindSafe for LineNode<'a>
impl<'a> !Send for LineNode<'a>
impl<'a> !Sync for LineNode<'a>
impl<'a> Unpin for LineNode<'a>
impl<'a> UnwindSafe for LineNode<'a>
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