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

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§