pub struct AstNode {
pub node_type: String,
pub value: Option<String>,
pub children: Vec<AstNode>,
pub position: Option<Range>,
}Expand description
Generic AST node representation
Fields§
§node_type: String§value: Option<String>§children: Vec<AstNode>§position: Option<Range>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AstNode
impl RefUnwindSafe for AstNode
impl Send for AstNode
impl Sync for AstNode
impl Unpin for AstNode
impl UnwindSafe for AstNode
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