StyleFn

Type Alias StyleFn 

Source
pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description

A styling function for a Container.

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.