[][src]Trait annotate_snippets::formatter::style::Stylesheet

pub trait Stylesheet {
    fn get_style(&self, class: StyleClass) -> Box<dyn Style>;
}

Trait to annotate structs that can provide Style implementations for every StyleClass variant.

Required methods

fn get_style(&self, class: StyleClass) -> Box<dyn Style>

Returns a Style implementer based on the requested StyleClass variant.

Loading content...

Implementors

impl Stylesheet for NoColorStylesheet[src]

Loading content...