Type Definition pretty::Arena
[−]
[src]
type Arena<'a> = Arena<Doc<'a, RefDoc<'a>>>;
An arena which can be used to allocate Doc
values.
Trait Implementations
impl<'a> DocAllocator<'a> for Arena<'a>
[src]
type Doc = RefDoc<'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>>,