Struct egui::any::serializable::IdAnyMap [−][src]
pub struct IdAnyMap(_);
Expand description
Stores any object by Id
, and can be de/serialized.
Implementations
pub fn get_or_insert_with<T: AnyMapTrait>(
&mut self,
key: Id,
or_insert_with: impl FnOnce() -> T
) -> &T
pub fn get_mut_or_insert_with<T: AnyMapTrait>(
&mut self,
key: Id,
or_insert_with: impl FnOnce() -> T
) -> &mut T
Note that this function could not remove all needed types between runs because if you upgraded the Rust version or for other reasons.
You could use this function to find is there some leak or misusage. Note, that result of this function could break between runs, if you upgraded the Rust version or for other reasons.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for IdAnyMap
impl !UnwindSafe for IdAnyMap
Blanket Implementations
Mutably borrows from an owned value. Read more