Trait annotate_snippets::formatter::style::Style [−][src]
pub trait Style {
fn paint(&self, text: &str, f: &mut Formatter<'_>) -> Result;
fn paint_fn<'a>(
&self,
c: Box<dyn FnOnce(&mut Formatter<'_>) -> Result + 'a>,
f: &mut Formatter<'_>
) -> Result;
fn bold(&self) -> Box<dyn Style>;
}
Expand description
This trait implements a return value for the Stylesheet::get_style
.
Required methods
The method used to write text with formatter
The method used to write display function with formatter