StyleThemeExt

Trait StyleThemeExt 

Source
pub trait StyleThemeExt {
    // Required methods
    fn theme(self, theme: DesignSystem) -> Self;
    fn with_theme(
        self,
        f: impl Fn(Self, &DesignSystem) -> Self + 'static,
    ) -> Self
       where Self: Sized;
}

Required Methods§

Source

fn theme(self, theme: DesignSystem) -> Self

Source

fn with_theme(self, f: impl Fn(Self, &DesignSystem) -> Self + 'static) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§