pub struct PartialEqTypeMap(/* private fields */);
Expand description
A typemap that provides a PartialEq implementation
Trait Implementations§
Source§impl Debug for PartialEqTypeMap
impl Debug for PartialEqTypeMap
Source§impl<K: KeyCanExtend<PartialEqTypeMap>> Extend<TypeMapEntry<K>> for PartialEqTypeMap
impl<K: KeyCanExtend<PartialEqTypeMap>> Extend<TypeMapEntry<K>> for PartialEqTypeMap
Source§fn extend<T: IntoIterator<Item = TypeMapEntry<K>>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = TypeMapEntry<K>>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T: KeyCanExtend<PartialEqTypeMap>> FromIterator<TypeMapEntry<T>> for PartialEqTypeMap
impl<T: KeyCanExtend<PartialEqTypeMap>> FromIterator<TypeMapEntry<T>> for PartialEqTypeMap
Source§fn 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
Source§impl IntoIterator for PartialEqTypeMap
impl IntoIterator for PartialEqTypeMap
Source§type Item = TypeMapEntry<PartialEqTypeMapKey>
type Item = TypeMapEntry<PartialEqTypeMapKey>
The type of the elements being iterated over.
Source§type IntoIter = IntoIter<<PartialEqTypeMap as IntoIterator>::Item>
type IntoIter = IntoIter<<PartialEqTypeMap as IntoIterator>::Item>
Which kind of iterator are we turning this into?
Source§impl PartialEq for PartialEqTypeMap
impl PartialEq for PartialEqTypeMap
Source§impl TypeMap for PartialEqTypeMap
impl TypeMap for PartialEqTypeMap
type Key = PartialEqTypeMapKey
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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
Source§fn 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 Freeze for PartialEqTypeMap
impl RefUnwindSafe for PartialEqTypeMap
impl !Send for PartialEqTypeMap
impl !Sync for PartialEqTypeMap
impl Unpin for PartialEqTypeMap
impl UnwindSafe for PartialEqTypeMap
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more