Skip to main content

ToIndentedString

Trait ToIndentedString 

Source
pub trait ToIndentedString {
    // Required method
    fn to_indented_string(
        &self,
        interner: &Interner,
        indentation: usize,
    ) -> String;
}
Expand description

Implements the display formatting with indentation.

Required Methods§

Source

fn to_indented_string(&self, interner: &Interner, indentation: usize) -> String

Converts the element to a string using an interner, with the given indentation.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§