Struct pretty::BoxDoc [] [src]

pub struct BoxDoc<'a, A>(_);

Methods from Deref<Target = Doc<'a, A, BoxDoc<'a, A>>>

[src]

Writes a rendered document to a std::io::Write object.

[src]

Writes a rendered document to a std::fmt::Write object.

[src]

Returns a value which implements std::fmt::Display

use pretty::Doc;
let doc = Doc::<(), _>::group(
    Doc::text("hello").append(Doc::space()).append(Doc::text("world"))
);
assert_eq!(format!("{}", doc.pretty(80)), "hello world");

[src]

Trait Implementations

impl<'a, A: Clone> Clone for BoxDoc<'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: Eq> Eq for BoxDoc<'a, A>
[src]

impl<'a, A: Ord> Ord for BoxDoc<'a, A>
[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> PartialEq for BoxDoc<'a, A>
[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> PartialOrd for BoxDoc<'a, A>
[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> Debug for BoxDoc<'a, A> where
    A: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a, A> Deref for BoxDoc<'a, A>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

Auto Trait Implementations

impl<'a, A> Send for BoxDoc<'a, A> where
    A: Send

impl<'a, A> Sync for BoxDoc<'a, A> where
    A: Sync