pretty

Trait Render

Source
pub trait Render {
    type Error;

    // Required method
    fn write_str(&mut self, s: &str) -> Result<usize, Self::Error>;

    // Provided method
    fn write_str_all(&mut self, s: &str) -> Result<(), Self::Error> { ... }
}
Expand description

Trait representing the operations necessary to render a document

Required Associated Types§

Required Methods§

Source

fn write_str(&mut self, s: &str) -> Result<usize, Self::Error>

Provided Methods§

Source

fn write_str_all(&mut self, s: &str) -> Result<(), Self::Error>

Implementors§

Source§

impl<W> Render for FmtWrite<W>
where W: Write,

Source§

impl<W> Render for IoWrite<W>
where W: Write,