Skip to main content

ThemeExt

Trait ThemeExt 

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

The carrier seam for catalog traits: any type holding a Theme exposes it through this one method, and every component group (ui::widgets::Scaffolding, …) extends it, so group methods read the environment through self.theme().

Required Methods§

Source

fn theme(&self) -> &Theme

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§