pub trait Indent:
AstNode
+ Clone
+ Sized {
// Provided methods
fn indent_level(&self) -> IndentLevel { ... }
fn indent(&self, by: IndentLevel) { ... }
fn dedent(&self, by: IndentLevel) { ... }
fn reindent_to(&self, target_level: IndentLevel) { ... }
}
Provided Methods§
fn indent_level(&self) -> IndentLevel
fn indent(&self, by: IndentLevel)
fn dedent(&self, by: IndentLevel)
fn reindent_to(&self, target_level: IndentLevel)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.