pub trait ValueExt<T>: Clone{
// Required methods
fn value_untracked(&self) -> T;
fn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U>
where U: Clone + PartialEq + 'static;
fn animated(self, spec: impl Into<AnimSpec>) -> Live<T>;
fn springed(self, spec: SpringSpec) -> Live<T>;
}Required Methods§
fn value_untracked(&self) -> T
Sourcefn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U>
fn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U>
Derives a new value from this one.
The closure receives &T, not T, so match it against a reference
(for example |v| *v * 2.0 or |v| v.is_open()).
fn animated(self, spec: impl Into<AnimSpec>) -> Live<T>
fn springed(self, spec: SpringSpec) -> Live<T>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".