pub trait Reactive<T>: PartialEq {
// Required methods
fn set(&self, value: T);
fn get(&self, context: &Context) -> T;
fn change(&self, change_fn: impl FnOnce(&mut T));
}Expand description
Types that behave like a Value<T>.
Required Methods§
fn set(&self, value: T)
fn get(&self, context: &Context) -> T
fn change(&self, change_fn: impl FnOnce(&mut T))
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".