Skip to main content

ElementContextThemeExt

Trait ElementContextThemeExt 

Source
pub trait ElementContextThemeExt {
    // Required methods
    fn with_theme<R>(&mut self, f: impl FnOnce(&Theme) -> R) -> R;
    fn theme_snapshot(&mut self) -> ThemeSnapshot;
}

Required Methods§

Source

fn with_theme<R>(&mut self, f: impl FnOnce(&Theme) -> R) -> R

Source

fn theme_snapshot(&mut self) -> ThemeSnapshot

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§