cl_ast::format

Trait FmtAdapter

Source
pub trait FmtAdapter: Write {
    // Provided methods
    fn indent(&mut self) -> Indent<'_, Self> { ... }
    fn delimit(&mut self, delim: Delimiters) -> Delimit<'_, Self> { ... }
    fn delimit_with(
        &mut self,
        open: &'static str,
        close: &'static str,
    ) -> Delimit<'_, Self> { ... }
}

Provided Methods§

Source

fn indent(&mut self) -> Indent<'_, Self>

Source

fn delimit(&mut self, delim: Delimiters) -> Delimit<'_, Self>

Source

fn delimit_with( &mut self, open: &'static str, close: &'static str, ) -> Delimit<'_, 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§

Source§

impl<W: Write + ?Sized> FmtAdapter for W