Trait iced::widget::rule::StyleSheet

pub trait StyleSheet {
    type Style: Default;

    // Required method
    fn appearance(&self, style: &Self::Style) -> Appearance;
Expand description

A set of rules that dictate the style of a rule.

Required Associated Types§

type Style: Default

The supported style of the StyleSheet.

Required Methods§

fn appearance(&self, style: &Self::Style) -> Appearance

Produces the style of a rule.



impl StyleSheet for Theme


type Style = Rule


impl<T> StyleSheet for Twhere T: Fn(&Theme) -> Appearance,


type Style = Theme