Trait cushy::value::Switchable
source · 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§
Object Safety§
This trait is not object safe.