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