pub fn insert(&mut self, value: T) -> T {
        *self
            .base
            .insert(RwLock::new(Box::new(value)))
            .into_inner()
            .downcast()
            .unwrap_or_else(|_| panic!("downcasting resources should always succeed"))
    }
/// Sets the value of the entry, and returns the entry's old value.
Sets the value of the entry, and returns the entry's old value.
Sets the value of the entry and returns the entry ' s old value .
pub fn insert(&mut self, value: T) -> T {
        *self
            .base
            .insert(RwLock::new(Box::new(value)))
            .into_inner()
            .downcast()
            .unwrap_or_else(|_| panic!("downcasting resources should always succeed"))
    }
pub fn insert ( & mut self , value : T ) -> T { * self . base . insert ( RwLock :: new ( Box :: new ( value ) ) ) . into_inner ( ) . downcast ( ) . unwrap_or_else ( | _ | panic ! ( " " ) ) }
Sets the value of the entry, and returns the entry's old value.
Sets the value of the entry and returns the entry ' s old value .
&mut self
value
T
&mut self
value
T