pub fn replace(&self, value: T) -> Option<T>
    where
        T: Eq + Hash,
    {
        let v = self.inner.borrow_mut().replace(value);
        (self.update)();
        v
    }
/// Adds a value to the set, replacing the existing value,
/// if any, that is equal to the given one. Returns the replaced value.
Adds a value to the set, replacing the existing value,
if any, that is equal to the given one. Returns the replaced value.
Adds a value to the set replacing the existing value if any that is equal to the given one . Returns the replaced value .
pub fn replace(&self, value: T) -> Option<T>
    where
        T: Eq + Hash,
    {
        let v = self.inner.borrow_mut().replace(value);
        (self.update)();
        v
    }
pub fn replace ( & self , value : T ) -> Option < T > where T : Eq + Hash , { let v = self . inner . borrow_mut ( ) . replace ( value ) ; ( self . update ) ( ) ; v }
Adds a value to the set, replacing the existing value,
if any, that is equal to the given one.
Adds a value to the set replacing the existing value if any that is equal to the given one .
&self
value
T
&self
value
T