Struct egui::any::AnyMap [−][src]
pub struct AnyMap<K: Hash + Eq, S: BuildHasher + Default = RandomState>(_);
Expand description
Stores any object by K
.
Implementations
pub fn get_or_insert_with<T: AnyMapTrait>(
&mut self,
key: K,
or_insert_with: impl FnOnce() -> T
) -> &T
pub fn get_mut_or_insert_with<T: AnyMapTrait>(
&mut self,
key: K,
or_insert_with: impl FnOnce() -> T
) -> &mut T
You could use this function to find is there some leak or misusage.
Trait Implementations
Auto Trait Implementations
impl<K, S = RandomState> !RefUnwindSafe for AnyMap<K, S>
impl<K, S = RandomState> !UnwindSafe for AnyMap<K, S>
Blanket Implementations
Mutably borrows from an owned value. Read more