syntax::ast::edit

Trait AstNodeEdit

source
pub trait AstNodeEdit:
    AstNode
    + Clone
    + Sized {
    // Provided methods
    fn indent_level(&self) -> IndentLevel { ... }
    fn indent(&self, level: IndentLevel) -> Self { ... }
    fn dedent(&self, level: IndentLevel) -> Self { ... }
    fn reset_indent(&self) -> Self { ... }
}
Expand description

Soft-deprecated in favor of mutable tree editing API edit_in_place::Ident.

Provided Methods§

source

fn indent_level(&self) -> IndentLevel

source

fn indent(&self, level: IndentLevel) -> Self

source

fn dedent(&self, level: IndentLevel) -> Self

source

fn reset_indent(&self) -> Self

Object Safety§

This trait is not object safe.

Implementors§