pub trait Print<T>where
for<'a> dyn Resugaring: AstVisitableMut<'a, T>,{
// Required methods
fn print_returning_fragment(
&mut self,
fragment: T,
) -> (String, SourceMap, T)
where T: ToDocument<Self, Span>;
fn print(&mut self, fragment: T) -> (String, SourceMap)
where T: ToDocument<Self, Span>;
}Expand description
Helper trait to print AST fragments.
Required Methods§
Sourcefn print_returning_fragment(&mut self, fragment: T) -> (String, SourceMap, T)where
T: ToDocument<Self, Span>,
fn print_returning_fragment(&mut self, fragment: T) -> (String, SourceMap, T)where
T: ToDocument<Self, Span>,
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".