Struct egui::any::AnyMap [−][src]
Expand description
Stores any object by Key
.
Implementations
pub fn get_or_insert_with<T: AnyMapTrait>(
&mut self,
key: Key,
or_insert_with: impl FnOnce() -> T
) -> &T
pub fn get_mut_or_insert_with<T: AnyMapTrait>(
&mut self,
key: Key,
or_insert_with: impl FnOnce() -> T
) -> &mut T
Trait Implementations
Auto Trait Implementations
impl<Key> !RefUnwindSafe for AnyMap<Key>
impl<Key> !UnwindSafe for AnyMap<Key>
Blanket Implementations
Mutably borrows from an owned value. Read more