pub trait Pretty<'a, D, A = ()>where
A: 'a,
D: ?Sized + DocAllocator<'a, A>,{
// Required method
fn pretty(self, allocator: &'a D) -> DocBuilder<'a, D, A>;
}
Expand description
Trait for types which can be converted to a Document
Required Methods§
Sourcefn pretty(self, allocator: &'a D) -> DocBuilder<'a, D, A>
fn pretty(self, allocator: &'a D) -> DocBuilder<'a, D, A>
Converts self
into a document