Skip to main content

Set

Trait Set 

Source
pub trait Set<T: 'static>: Update<T> {
    // Provided method
    fn set(&self, value: T) { ... }
}
Expand description

Replaces the value of a reactive value and notifies subscribers.

Provided Methods§

Source

fn set(&self, value: T)

Replaces the value and notifies subscribers, whether or not the new value compares equal to the old one.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S, T> Set<T> for S
where S: Update<T> + ?Sized, T: 'static,