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.

Implementors§

Source§

impl ToIndentedString for Declaration

Source§

impl ToIndentedString for Expression

Source§

impl ToIndentedString for Statement

Source§

impl ToIndentedString for StatementListItem

Source§

impl ToIndentedString for ClassElement

Source§

impl ToIndentedString for ObjectLiteral

Source§

impl ToIndentedString for ObjectMethodDefinition

Source§

impl ToIndentedString for ArrowFunction

Source§

impl ToIndentedString for AsyncArrowFunction

Source§

impl ToIndentedString for AsyncFunctionDeclaration

Source§

impl ToIndentedString for AsyncFunctionExpression

Source§

impl ToIndentedString for AsyncGeneratorDeclaration

Source§

impl ToIndentedString for AsyncGeneratorExpression

Source§

impl ToIndentedString for ClassDeclaration

Source§

impl ToIndentedString for ClassExpression

Source§

impl ToIndentedString for ClassMethodDefinition

Source§

impl ToIndentedString for FunctionBody

Source§

impl ToIndentedString for FunctionDeclaration

Source§

impl ToIndentedString for FunctionExpression

Source§

impl ToIndentedString for GeneratorDeclaration

Source§

impl ToIndentedString for GeneratorExpression

Source§

impl ToIndentedString for Block

Source§

impl ToIndentedString for Catch

Source§

impl ToIndentedString for DoWhileLoop

Source§

impl ToIndentedString for Finally

Source§

impl ToIndentedString for ForInLoop

Source§

impl ToIndentedString for ForLoop

Source§

impl ToIndentedString for ForOfLoop

Source§

impl ToIndentedString for If

Source§

impl ToIndentedString for Switch

Source§

impl ToIndentedString for Try

Source§

impl ToIndentedString for WhileLoop

Source§

impl ToIndentedString for With

Source§

impl ToIndentedString for Script

Source§

impl ToIndentedString for StatementList