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)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<N: AstNode + Clone> Indent for N