pub trait Formatter {
// Required methods
fn format(&self, ast: &AstNode) -> Result<String>;
fn format_node(&self, node: &AstNode) -> Result<String>;
}Expand description
Base trait for all formatters
Required Methods§
Sourcefn format_node(&self, node: &AstNode) -> Result<String>
fn format_node(&self, node: &AstNode) -> Result<String>
Format a single node