[][src]Trait trait_bound_pretty::Pretty

pub trait Pretty {
    fn pretty_to<Writer: Write>(&self, writer: &mut Writer) -> Result<(), Error>;

    fn pretty(&self) -> String { ... }
}

Required methods

fn pretty_to<Writer: Write>(&self, writer: &mut Writer) -> Result<(), Error>

Pretty-print Self to the supplied writer.

This function must only ever write valid utf8 strings.

Loading content...

Provided methods

fn pretty(&self) -> String

Pretty-print Self into a new string.

Loading content...

Implementors

impl<'a> Pretty for E0277<'a>[src]

fn pretty_to<Writer: Write>(&self, writer: &mut Writer) -> Result<(), Error>[src]

Pretty-print this Item to the supplied writer.

impl<'a> Pretty for Item<'a>[src]

Loading content...