Base

Trait Base 

Source
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§

Source

fn default(preference: Mode) -> Self

Returns the default theme for the preferred Mode.

Source

fn mode(&self) -> Mode

Returns the Mode of the theme.

Source

fn base(&self) -> Style

Returns the default base Style of the theme.

Source

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§