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§
Sourcefn push_annotation(
&mut self,
annotation: Rc<AnsiStyle>,
) -> Result<(), Self::Error>
fn push_annotation( &mut self, annotation: Rc<AnsiStyle>, ) -> Result<(), Self::Error>
Push an annotation onto the stack
Sourcefn pop_annotation(&mut self) -> Result<(), Self::Error>
fn pop_annotation(&mut self) -> Result<(), Self::Error>
Pop an annotation from the stack
Implementors§
impl<'a, T: Clone> RenderAnnotated<'a, T> for BufferWrite<T>
impl<'a, T: Text<'a>> RenderAnnotated<'a, T> for VecWrite<'_, T>
Available on crate feature
std only.impl<'a, W, T: Text<'a>> RenderAnnotated<'a, T> for FmtWrite<W>where
W: Write,
impl<'a, W, T: Text<'a>> RenderAnnotated<'a, T> for IoWrite<W>where
W: Write,
Available on crate feature
std only.