[−][src]Trait valerie::Value
Value
trait
Implement this so that the type can be used to bind themselves to attributes.
Required methods
fn bind_func(&self, func: Box<dyn FnMut(&str)>)
The bind_func
has to call the func
function with the parameter
as its own value whenever it is updated.
Ignore the repeated calls if your type is not a state variable.
Implementors
impl<T> Value for StateAtomic<T> where
T: Copy + Display,
[src]
T: Copy + Display,
impl<T> Value for StateMutex<T> where
T: Clone + Display,
[src]
T: Clone + Display,
impl<T> Value for T where
T: Display,
[src]
T: Display,
impl<T, D> Value for StateGeneric<T, D> where
D: Clone + Display,
[src]
D: Clone + Display,