pub fn or_insert_with<F>(self, default: F) -> AccessMutReturn<'a, T>
    where
        F: FnOnce() -> T,
    {
        match self {
            StorageEntry::Occupied(occupied) => occupied.into_mut(),
            StorageEntry::Vacant(vacant) => vacant.insert(default()),
        }
    }
/// Inserts a component using a lazily called function that is only called
/// when inserting the component. Ensures this entry has a value and if not,
/// inserts one using the result of the passed closure. Returns a reference
/// to the value afterwards.
Inserts a component using a lazily called function that is only called
when inserting the component. Ensures this entry has a value and if not,
inserts one using the result of the passed closure. Returns a reference
to the value afterwards.
Inserts a component using a lazily called function that is only called when inserting the component . Ensures this entry has a value and if not inserts one using the result of the passed closure . Returns a reference to the value afterwards .
pub fn or_insert_with<F>(self, default: F) -> AccessMutReturn<'a, T>
    where
        F: FnOnce() -> T,
    {
        match self {
            StorageEntry::Occupied(occupied) => occupied.into_mut(),
            StorageEntry::Vacant(vacant) => vacant.insert(default()),
        }
    }
pub fn or_insert_with < F > ( self , default : F ) -> AccessMutReturn < ' a , T > where F : FnOnce ( ) -> T , { match self { StorageEntry :: Occupied ( occupied ) => occupied . into_mut ( ) , StorageEntry :: Vacant ( vacant ) => vacant . insert ( default ( ) ) , } }
Inserts a component using a lazily called function that is only called
when inserting the component.
Inserts a component using a lazily called function that is only called when inserting the component .
self
default
F