pub trait Switchable<T>: IntoDynamic<T> + Sized {
// Provided methods
fn switcher<F>(self, map: F) -> Switcher
where F: FnMut(&T, &Dynamic<T>) -> WidgetInstance + Send + 'static,
T: Send + 'static { ... }
fn switch_between<Collection>(self, map: Collection) -> Switcher
where Collection: GetWidget<T> + Send + 'static,
T: Send + 'static { ... }
}
Expand description
A type that can be the source of a Switcher
widget.
Provided Methods§
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.