rcell

Trait Replace

Source
pub trait Replace<T> {
    // Required method
    fn replace(&mut self, new: T);
}
Expand description

Helper Trait for replacing the content of a RCell with something new.

Required Methods§

Source

fn replace(&mut self, new: T)

Replaces the contained value in self with T.

Implementors§

Source§

impl<T> Replace<Arc<T>> for RCell<T>

Source§

impl<T> Replace<Weak<T>> for RCell<T>