Trait typemap::CloneAny [] [src]

pub trait CloneAny: Any { }

A marker trait meant for use as the A parameter in TypeMap.

This can be used to construct TypeMaps 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 CloneAny
[src]

Returns a reference to the contained value, assuming that it is of type T. Read more

Returns a mutable reference to the contained value, assuming that it is of type T. Read more

Returns a the contained value, assuming that it is of type T. Read more

impl UnsafeAnyExt for CloneAny + Send
[src]

Returns a reference to the contained value, assuming that it is of type T. Read more

Returns a mutable reference to the contained value, assuming that it is of type T. Read more

Returns a the contained value, assuming that it is of type T. Read more

impl UnsafeAnyExt for CloneAny + Sync
[src]

Returns a reference to the contained value, assuming that it is of type T. Read more

Returns a mutable reference to the contained value, assuming that it is of type T. Read more

Returns a the contained value, assuming that it is of type T. Read more

impl UnsafeAnyExt for CloneAny + Send + Sync
[src]

Returns a reference to the contained value, assuming that it is of type T. Read more

Returns a mutable reference to the contained value, assuming that it is of type T. Read more

Returns a the contained value, assuming that it is of type T. Read more

Implementors