Struct trait_bound_typemap::PartialEqTypeMap
source · [−]pub struct PartialEqTypeMap(_);
Expand description
A typemap that provides a PartialEq implementation
Trait Implementations
sourceimpl Debug for PartialEqTypeMap
impl Debug for PartialEqTypeMap
sourceimpl<T: MapKey<Map = M>, M: 'static + PartialEqAny> FromIterator<TypeMapEntry<T>> for PartialEqTypeMap
impl<T: MapKey<Map = M>, M: 'static + PartialEqAny> FromIterator<TypeMapEntry<T>> for PartialEqTypeMap
sourcefn from_iter<T2: IntoIterator<Item = TypeMapEntry<T>>>(iter: T2) -> Self
fn from_iter<T2: IntoIterator<Item = TypeMapEntry<T>>>(iter: T2) -> Self
Creates a value from an iterator. Read more
sourceimpl IntoIterator for PartialEqTypeMap
impl IntoIterator for PartialEqTypeMap
sourceimpl PartialEq<PartialEqTypeMap> for PartialEqTypeMap
impl PartialEq<PartialEqTypeMap> for PartialEqTypeMap
sourceimpl TypeMapTrait for PartialEqTypeMap
impl TypeMapTrait for PartialEqTypeMap
type Key = PartialEqTypeMapKey
sourcefn insert<T: TypedKeyTrait<Self::Key>>(&mut self, value: T::Value)
fn insert<T: TypedKeyTrait<Self::Key>>(&mut self, value: T::Value)
Inserts a value into the typemap with the given key
sourcefn get<T: TypedKeyTrait<Self::Key>>(&self) -> Option<&T::Value>
fn get<T: TypedKeyTrait<Self::Key>>(&self) -> Option<&T::Value>
Returns a reference to a value from the type map with the given provided key
sourcefn get_mut<T: TypedKeyTrait<Self::Key>>(&mut self) -> Option<&mut T::Value>
fn get_mut<T: TypedKeyTrait<Self::Key>>(&mut self) -> Option<&mut T::Value>
Returns a mutable reference to a value from the type map with the given provided key
sourcefn remove<T: TypedKeyTrait<Self::Key>>(&mut self) -> Option<T::Value>
fn remove<T: TypedKeyTrait<Self::Key>>(&mut self) -> Option<T::Value>
Removes a value from the map for the given key
sourcefn contains_key<T: TypedKeyTrait<Self::Key>>(&self) -> bool
fn contains_key<T: TypedKeyTrait<Self::Key>>(&self) -> bool
Returns if the map contains a given key
Auto Trait Implementations
impl RefUnwindSafe for PartialEqTypeMap
impl !Send for PartialEqTypeMap
impl !Sync for PartialEqTypeMap
impl Unpin for PartialEqTypeMap
impl UnwindSafe for PartialEqTypeMap
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more