Trait annotate_snippets::formatter::style::Stylesheet
source · pub trait Stylesheet {
// Required method
fn get_style(&self, class: StyleClass) -> Box<dyn Style>;
}
Expand description
Trait to annotate structs that can provide Style
implementations for
every StyleClass
variant.
Required Methods§
sourcefn get_style(&self, class: StyleClass) -> Box<dyn Style>
fn get_style(&self, class: StyleClass) -> Box<dyn Style>
Returns a Style
implementer based on the requested StyleClass
variant.