Struct trait_bound_typemap::CloneSendSyncTypeMap
source · [−]pub struct CloneSendSyncTypeMap(_);
Expand description
A typemap that implements Clone and is Send + Sync
Trait Implementations
sourceimpl Clone for CloneSendSyncTypeMap
impl Clone for CloneSendSyncTypeMap
sourceimpl Debug for CloneSendSyncTypeMap
impl Debug for CloneSendSyncTypeMap
sourceimpl<K: KeyCanExtend<CloneSendSyncTypeMap>> Extend<TypeMapEntry<K>> for CloneSendSyncTypeMap
impl<K: KeyCanExtend<CloneSendSyncTypeMap>> Extend<TypeMapEntry<K>> for CloneSendSyncTypeMap
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl<T: KeyCanExtend<CloneSendSyncTypeMap>> FromIterator<TypeMapEntry<T>> for CloneSendSyncTypeMap
impl<T: KeyCanExtend<CloneSendSyncTypeMap>> FromIterator<TypeMapEntry<T>> for CloneSendSyncTypeMap
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 CloneSendSyncTypeMap
impl IntoIterator for CloneSendSyncTypeMap
sourceimpl TypeMap for CloneSendSyncTypeMap
impl TypeMap for CloneSendSyncTypeMap
type Key = CloneSendSyncTypeMapKey
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
impl<T: TypeMap + RawClone + Send + Sync> MapCanExtend<CloneSendSyncTypeMap> for T
impl Send for CloneSendSyncTypeMap
impl Sync for CloneSendSyncTypeMap
Auto Trait Implementations
impl RefUnwindSafe for CloneSendSyncTypeMap
impl Unpin for CloneSendSyncTypeMap
impl UnwindSafe for CloneSendSyncTypeMap
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more