iced::advanced::widget::text

Type Alias StyleFn

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

A styling function for a Text.

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

Aliased Typeยง

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