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