Trait pretty::RenderAnnotated

source ·
pub trait RenderAnnotated<'a, A>: Render {
    // Required methods
    fn push_annotation(&mut self, annotation: &'a A) -> Result<(), Self::Error>;
    fn pop_annotation(&mut self) -> Result<(), Self::Error>;
}
Expand description

Trait representing the operations necessary to write an annotated document.

Required Methods§

source

fn push_annotation(&mut self, annotation: &'a A) -> Result<(), Self::Error>

source

fn pop_annotation(&mut self) -> Result<(), Self::Error>

Implementors§

source§

impl<A, W> RenderAnnotated<'_, A> for FmtWrite<W>
where W: Write,

source§

impl<A, W> RenderAnnotated<'_, A> for IoWrite<W>
where W: Write,