[−][src]Trait typemap::CloneAny
A marker trait meant for use as the A
parameter in TypeMap
.
This can be used to construct TypeMap
s containing only types which
implement Clone
like so: TypeMap::<CloneAny>::custom()
, which produces
a TypeMap<CloneAny>
. Combine CloneAny
with Send
or Sync
to add
additional bounds.
There is also an exported alias for this type of TypeMap
, CloneAny
.
Trait Implementations
impl UnsafeAnyExt for dyn CloneAny
[src]
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
[src]
T: Any,
Returns a reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
[src]
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where
T: Any,
[src]
T: Any,
Returns a the contained value, assuming that it is of type T
. Read more
impl UnsafeAnyExt for dyn CloneAny + Send
[src]
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
[src]
T: Any,
Returns a reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
[src]
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where
T: Any,
[src]
T: Any,
Returns a the contained value, assuming that it is of type T
. Read more
impl UnsafeAnyExt for dyn CloneAny + Sync
[src]
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
[src]
T: Any,
Returns a reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
[src]
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where
T: Any,
[src]
T: Any,
Returns a the contained value, assuming that it is of type T
. Read more
impl UnsafeAnyExt for dyn CloneAny + Send + Sync
[src]
unsafe fn downcast_ref_unchecked<T>(&self) -> &T where
T: Any,
[src]
T: Any,
Returns a reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T where
T: Any,
[src]
T: Any,
Returns a mutable reference to the contained value, assuming that it is of type T
. Read more
unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T> where
T: Any,
[src]
T: Any,
Returns a the contained value, assuming that it is of type T
. Read more