Struct pretty::BoxAllocator
[−]
[src]
pub struct BoxAllocator;
Trait Implementations
impl<'a> DocAllocator<'a> for BoxAllocator
[src]
type Doc = BoxDoc<'a>
fn alloc(&'a self, doc: Doc<'a, Self::Doc>) -> Self::Doc
[src]
fn nil(&'a self) -> DocBuilder<'a, Self>
[src]
fn newline(&'a self) -> DocBuilder<'a, Self>
[src]
fn space(&'a self) -> DocBuilder<'a, Self>
[src]
fn as_string<T: ToString>(&'a self, t: T) -> DocBuilder<'a, Self>
[src]
fn text<T: Into<Cow<'a, str>>>(&'a self, data: T) -> DocBuilder<'a, Self>
[src]
fn concat<I>(&'a self, docs: I) -> DocBuilder<'a, Self> where
I: IntoIterator,
I::Item: Into<Doc<'a, Self::Doc>>,
[src]
I: IntoIterator,
I::Item: Into<Doc<'a, Self::Doc>>,