Trait annotate_snippets::formatter::style::Style
[−]
[src]
pub trait Style {
fn paint(&self, text: &str) -> String;
fn bold(&self) -> Box<Style>;
}This trait implements a return value for the Stylesheet::get_style.
Required Methods
fn paint(&self, text: &str) -> String
The method used by the DisplayListFormatter to style the message.
fn bold(&self) -> Box<Style>
The method used by the DisplayListFormatter to display the message in bold font.
Implementors
impl Style for NoOpStyle