pub struct ASTNode {
pub node_type: ASTNodeType,
pub source_location: Option<SourceLocation>,
pub children: Vec<ASTNode>,
}
Expand description
Fields§
§node_type: ASTNodeType
§source_location: Option<SourceLocation>
§children: Vec<ASTNode>
Implementations§
Source§impl ASTNode
impl ASTNode
Sourcepub fn new(
node_type: ASTNodeType,
source_location: Option<SourceLocation>,
children: Vec<ASTNode>,
) -> ASTNode
pub fn new( node_type: ASTNodeType, source_location: Option<SourceLocation>, children: Vec<ASTNode>, ) -> ASTNode
Sourcepub fn formatted_print(&self, indent: usize)
pub fn formatted_print(&self, indent: usize)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ASTNode
impl<'de> Deserialize<'de> for ASTNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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