pub enum Segment {
Token(TokenSegment),
Node(NodeSegment),
}Expand description
A node in the Concrete Syntax Tree.
Leaf nodes wrap individual tokens. Branch nodes group children
under a named production (e.g. SelectStatement, WhereClause).
Variants§
Token(TokenSegment)
Node(NodeSegment)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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