Print

Trait Print 

Source
pub trait Print<T>: Printer {
    // Provided method
    fn print(&mut self, fragment: T) -> (String, SourceMap)
       where T: ToDocument<Self, Span>,
             for<'a> dyn Resugaring: AstVisitableMut<'a, T> { ... }
}
Expand description

Helper trait to print AST fragments.

Provided Methods§

Source

fn print(&mut self, fragment: T) -> (String, SourceMap)
where T: ToDocument<Self, Span>, for<'a> dyn Resugaring: AstVisitableMut<'a, T>,

Print a single AST fragment using this backend.

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<P: Printer, T> Print<T> for P