pub trait StyleSheet {
    type Style: Default;

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

A set of rules that dictate the style of a progress bar.

Required Associated Types§

type Style: Default

The supported style of the StyleSheet.

Required Methods§

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

Produces the Appearance of the progress bar.

Implementations on Foreign Types§


impl StyleSheet for fn(_: &Theme) -> Appearance


type Style = Theme


fn appearance(
    style: &<fn(_: &Theme) -> Appearance as StyleSheet>::Style
) -> Appearance