Trait DebugInfo

Source
pub trait DebugInfo {
    // Required methods
    fn debug_description(&self) -> String;
    fn node_type(&self) -> &'static str;
}
Expand description

Trait for AST nodes that can provide debugging information.

Required Methods§

Source

fn debug_description(&self) -> String

Get a human-readable description of this node.

Source

fn node_type(&self) -> &'static str

Get the node type name.

Implementors§