[−][src]Struct pretty::Arena
An arena which can be used to allocate Doc
values.
Methods
impl<'a, A> Arena<'a, A>
[src]
Trait Implementations
impl<'_, A> Default for Arena<'_, A>
[src]
impl<'a, A> DocAllocator<'a, A> for Arena<'a, A>
[src]
type Doc = RefDoc<'a, A>
fn alloc(&'a self, doc: Doc<'a, Self::Doc, A>) -> Self::Doc
[src]
fn alloc_column_fn(
&'a self,
f: impl Fn(usize) -> Self::Doc + 'a
) -> <Self::Doc as DocPtr<'a, A>>::ColumnFn
[src]
&'a self,
f: impl Fn(usize) -> Self::Doc + 'a
) -> <Self::Doc as DocPtr<'a, A>>::ColumnFn
fn alloc_width_fn(
&'a self,
f: impl Fn(isize) -> Self::Doc + 'a
) -> <Self::Doc as DocPtr<'a, A>>::WidthFn
[src]
&'a self,
f: impl Fn(isize) -> Self::Doc + 'a
) -> <Self::Doc as DocPtr<'a, A>>::WidthFn
fn alloc_cow(&'a self, doc: BuildDoc<'a, Self::Doc, A>) -> Self::Doc
[src]
fn nil(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn hardline(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn space(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn line(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn line_(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn softline(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn softline_(&'a self) -> DocBuilder<'a, Self, A>
[src]
fn as_string<U: ToString>(&'a self, data: U) -> DocBuilder<'a, Self, A>
[src]
fn text<U: Into<Cow<'a, str>>>(&'a self, data: U) -> DocBuilder<'a, Self, A>
[src]
fn concat<I>(&'a self, docs: I) -> DocBuilder<'a, Self, A> where
I: IntoIterator,
I::Item: Into<BuildDoc<'a, Self::Doc, A>>,
[src]
I: IntoIterator,
I::Item: Into<BuildDoc<'a, Self::Doc, A>>,
fn intersperse<I, S>(&'a self, docs: I, separator: S) -> DocBuilder<'a, Self, A> where
I: IntoIterator,
I::Item: Into<BuildDoc<'a, Self::Doc, A>>,
S: Into<BuildDoc<'a, Self::Doc, A>> + Clone,
[src]
I: IntoIterator,
I::Item: Into<BuildDoc<'a, Self::Doc, A>>,
S: Into<BuildDoc<'a, Self::Doc, A>> + Clone,
fn column(
&'a self,
f: impl Fn(usize) -> Self::Doc + 'a
) -> DocBuilder<'a, Self, A>
[src]
&'a self,
f: impl Fn(usize) -> Self::Doc + 'a
) -> DocBuilder<'a, Self, A>
fn nesting(
&'a self,
f: impl Fn(usize) -> Self::Doc + 'a
) -> DocBuilder<'a, Self, A>
[src]
&'a self,
f: impl Fn(usize) -> Self::Doc + 'a
) -> DocBuilder<'a, Self, A>
fn reflow(&'a self, text: &'a str) -> DocBuilder<'a, Self, A> where
Self: Sized,
Self::Doc: Clone,
A: Clone,
[src]
Self: Sized,
Self::Doc: Clone,
A: Clone,
Auto Trait Implementations
impl<'a, A = ()> !RefUnwindSafe for Arena<'a, A>
impl<'a, A = ()> !Send for Arena<'a, A>
impl<'a, A = ()> !Sync for Arena<'a, A>
impl<'a, A> Unpin for Arena<'a, A> where
A: Unpin,
A: Unpin,
impl<'a, A = ()> !UnwindSafe for Arena<'a, A>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,