pub trait TypedAtomMap<M> {
// Required methods
fn entry<A>(&self) -> &Option<<M as Mapping<A>>::Value>
where M: Mapping<A>,
A: 'static;
fn entry_mut<A>(&mut self) -> &mut Option<<M as Mapping<A>>::Value>
where M: Mapping<A>,
A: 'static;
// Provided methods
fn get<A>(&self) -> Option<&<M as Mapping<A>>::Value>
where M: Mapping<A>,
A: 'static { ... }
fn get_mut<A>(&mut self) -> Option<&mut <M as Mapping<A>>::Value>
where M: Mapping<A>,
A: 'static { ... }
fn insert<A>(
&mut self,
value: <M as Mapping<A>>::Value,
) -> Option<<M as Mapping<A>>::Value>
where M: Mapping<A>,
A: 'static { ... }
fn remove<A>(&mut self) -> Option<<M as Mapping<A>>::Value>
where M: Mapping<A>,
A: 'static { ... }
fn get_or_insert<A>(
&mut self,
value: <M as Mapping<A>>::Value,
) -> &mut <M as Mapping<A>>::Value
where M: Mapping<A>,
A: 'static { ... }
fn get_or_insert_with<A, F>(
&mut self,
f: F,
) -> &mut <M as Mapping<A>>::Value
where M: Mapping<A>,
A: 'static,
F: FnOnce() -> <M as Mapping<A>>::Value { ... }
}
Required Methods§
fn entry<A>(&self) -> &Option<<M as Mapping<A>>::Value>where
M: Mapping<A>,
A: 'static,
fn entry_mut<A>(&mut self) -> &mut Option<<M as Mapping<A>>::Value>where
M: Mapping<A>,
A: 'static,
Provided Methods§
fn get<A>(&self) -> Option<&<M as Mapping<A>>::Value>where
M: Mapping<A>,
A: 'static,
fn get_mut<A>(&mut self) -> Option<&mut <M as Mapping<A>>::Value>where
M: Mapping<A>,
A: 'static,
fn insert<A>(
&mut self,
value: <M as Mapping<A>>::Value,
) -> Option<<M as Mapping<A>>::Value>where
M: Mapping<A>,
A: 'static,
fn remove<A>(&mut self) -> Option<<M as Mapping<A>>::Value>where
M: Mapping<A>,
A: 'static,
fn get_or_insert<A>(
&mut self,
value: <M as Mapping<A>>::Value,
) -> &mut <M as Mapping<A>>::Valuewhere
M: Mapping<A>,
A: 'static,
fn get_or_insert_with<A, F>(&mut self, f: F) -> &mut <M as Mapping<A>>::Value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.