Base

Trait Base 

pub trait Base {
    // Required methods
    fn default(preference: Mode) -> Self;
    fn mode(&self) -> Mode;
    fn base(&self) -> Style;
    fn palette(&self) -> Option<Palette>;
}
Expand description

The default blank style of a theme.

Required Methods§

fn default(preference: Mode) -> Self

Returns the default theme for the preferred Mode.

fn mode(&self) -> Mode

Returns the Mode of the theme.

fn base(&self) -> Style

Returns the default base Style of the theme.

fn palette(&self) -> Option<Palette>

Returns the color Palette of the theme.

This Palette may be used by the runtime for debugging purposes; like displaying performance metrics or devtools.

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§

§

impl Base for Theme