Skip to main content

RenderAnnotated

Trait RenderAnnotated 

Source
pub trait RenderAnnotated<'a, T>: Render<'a, T> {
    // Required methods
    fn push_annotation(
        &mut self,
        annotation: Rc<AnsiStyle>,
    ) -> 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: Rc<AnsiStyle>, ) -> Result<(), Self::Error>

Push an annotation onto the stack

Source

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

Pop an annotation from the stack

Implementors§

Source§

impl<'a, T: Clone> RenderAnnotated<'a, T> for BufferWrite<T>

Source§

impl<'a, T: Text<'a>> RenderAnnotated<'a, T> for VecWrite<'_, T>

Available on crate feature std only.
Source§

impl<'a, W, T: Text<'a>> RenderAnnotated<'a, T> for FmtWrite<W>
where W: Write,

Source§

impl<'a, W, T: Text<'a>> RenderAnnotated<'a, T> for IoWrite<W>
where W: Write,

Available on crate feature std only.
Source§

impl<'a, W: Write, T: Text<'a>> RenderAnnotated<'a, T> for TerminalWriter<W>