iced_widget::container

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§

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

Trait Implementations§

source§

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

source§

fn from(style: Style) -> Self

Converts to this type from the input type.