pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
A styling function for a Rule.
Rule
This is just a boxed closure: Fn(&Theme, Status) -> Style.
Fn(&Theme, Status) -> Style
struct StyleFn<'a, Theme>(/* private fields */);