Skip to main content

ThemeProvider

Trait ThemeProvider 

Source
pub trait ThemeProvider {
    // Required method
    fn nuance_theme(&self) -> Theme;
}
Expand description

Implemented by application theme types to expose them as a Theme.

Required Methods§

Source

fn nuance_theme(&self) -> Theme

Produce the shared Theme for this application theme.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ThemeProvider for &T
where T: ThemeProvider + ?Sized,

Source§

impl<T> ThemeProvider for Box<T>
where T: ThemeProvider + ?Sized,

Implementors§