pub trait PrettyTree {
// Required method
fn pretty_tree(&self) -> PrettyNode;
}Expand description
Converts typed syntax into the structural presentation used by the pretty printer.
Implementations for generated nodes are emitted from syntax!, so
field names, punctuation, and newly added concrete node types appear in the
tree without a handwritten registry. Category enums are intentionally
transparent because they are storage details rather than CST nodes.
Required Methods§
Sourcefn pretty_tree(&self) -> PrettyNode
fn pretty_tree(&self) -> PrettyNode
Builds the presentation node for this syntax value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".