Skip to main content

FromPreference

Trait FromPreference 

Source
pub trait FromPreference {
    // Required method
    fn to_theme(&self) -> Theme;
}

Required Methods§

Source

fn to_theme(&self) -> 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 FromPreference for PreferredTheme

Source§

fn to_theme(&self) -> Theme

Implementors§