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]

[src]

[src]

[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]

[src]

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

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

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

[src]

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

[src]

This method tests for !=.

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

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

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]

[src]

Performs the conversion.