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§
fn with_theme<R>(&mut self, f: impl FnOnce(&Theme) -> R) -> R
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.