Struct pretty::DocBuilder [] [src]

pub struct DocBuilder<'a, A: ?Sized>(pub &'a A, pub Doc<'a, A::Doc>)
where
    A: DocAllocator<'a> + 'a
;

The DocBuilder type allows for convenient appending of documents even for arena allocated documents by storing the arena inline.

Methods

impl<'a, 's, A: ?Sized> DocBuilder<'a, A> where
    A: DocAllocator<'a>, 
[src]

Trait Implementations

impl<'a, A: Eq + ?Sized> Eq for DocBuilder<'a, A> where
    A: DocAllocator<'a> + 'a,
    A::Doc: Eq
[src]

impl<'a, A: Ord + ?Sized> Ord for DocBuilder<'a, A> where
    A: DocAllocator<'a> + 'a,
    A::Doc: Ord
[src]

This method returns an Ordering between self and other. Read more

impl<'a, A: PartialEq + ?Sized> PartialEq for DocBuilder<'a, A> where
    A: DocAllocator<'a> + 'a,
    A::Doc: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, A: PartialOrd + ?Sized> PartialOrd for DocBuilder<'a, A> where
    A: DocAllocator<'a> + 'a,
    A::Doc: PartialOrd
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'a, A: DocAllocator<'a> + 'a> Clone for DocBuilder<'a, A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, A: ?Sized> Into<Doc<'a, A::Doc>> for DocBuilder<'a, A> where
    A: DocAllocator<'a>, 
[src]

Performs the conversion.