syntax::ast::edit_in_place

Trait Indent

Source
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§

Source

fn indent_level(&self) -> IndentLevel

Source

fn indent(&self, by: IndentLevel)

Source

fn dedent(&self, by: IndentLevel)

Source

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.

Implementors§

Source§

impl<N: AstNode + Clone> Indent for N