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§

source

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

Returns a Style implementer based on the requested StyleClass variant.

Implementors§