StyleFn

Type Alias StyleFn 

Source
pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme, Status) -> Style + 'a>;
Available on crate feature svg only.
Expand description

A styling function for an Svg.

This is just a boxed closure: Fn(&Theme, Status) -> Style.

Aliased Type§

pub struct StyleFn<'a, Theme>(/* private fields */);

Trait Implementations§

Source§

impl<Theme> From<Style> for StyleFn<'_, Theme>

Source§

fn from(style: Style) -> Self

Converts to this type from the input type.