Struct typedmap::clone::SyncCloneBounds
source · pub struct SyncCloneBounds;
Expand description
Bounds for Cloneable keys or values which are Send & Sync
Trait Implementations§
source§impl Bounds for SyncCloneBounds
impl Bounds for SyncCloneBounds
§type KeyContainer = dyn ContainerWithHashAndClone<SyncCloneBounds> + Send + Sync
type KeyContainer = dyn ContainerWithHashAndClone<SyncCloneBounds> + Send + Sync
Type used to store keys with those bounds. It should be
dyn ContainerWithHash<Self> + Marker traits
Read more§type Container = dyn CloneAny + Send + Sync
type Container = dyn CloneAny + Send + Sync
Type used to store values that fulfill specified bounds (e.g.
dyn Any + Send + Sync
or
dyn CloneAny
)fn as_any(this: &Self::Container) -> &dyn Any
fn as_any_mut(this: &mut Self::Container) -> &mut dyn Any
fn as_any_box(this: Box<Self::Container>) -> Box<dyn Any>
source§impl<T: CloneAny + Any + Send + Sync> HasBounds<T> for SyncCloneBounds
impl<T: CloneAny + Any + Send + Sync> HasBounds<T> for SyncCloneBounds
source§fn cast_key_box(this: Box<T>) -> Box<Self::KeyContainer>
fn cast_key_box(this: Box<T>) -> Box<Self::KeyContainer>
Converts from
Box<T>
to Box<KeyContainer>
source§fn box_value(this: T) -> Box<Self::Container>where
Self: Sized,
fn box_value(this: T) -> Box<Self::Container>where
Self: Sized,
Boxes value of type
T
as Box<Container>
source§fn downcast_ref(this: &Self::Container) -> Option<&T>where
Self: 'static + Sized,
fn downcast_ref(this: &Self::Container) -> Option<&T>where
Self: 'static + Sized,
Attempts to downcast
&Container
to &T
Auto Trait Implementations§
impl Freeze for SyncCloneBounds
impl RefUnwindSafe for SyncCloneBounds
impl Send for SyncCloneBounds
impl Sync for SyncCloneBounds
impl Unpin for SyncCloneBounds
impl UnwindSafe for SyncCloneBounds
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