pub trait AnyCloneable: AsAny + DynClone + Debug { }
Expand description

A trait for types that can be converted to Any and can also be cloned.

Trait Implementations§

source§

impl<'clone> Clone for Box<dyn AnyCloneable + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn AnyCloneable + Send + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn AnyCloneable + Send + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'clone> Clone for Box<dyn AnyCloneable + Sync + 'clone>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Downcast for dyn AnyCloneable

source§

fn is<T>(&self) -> boolwhere T: AsAny,

Returns true if the boxed type is the same as T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,

Forward to the method defined on the type Any.
source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,

Forward to the method defined on the type Any.
source§

unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere T: Any,

source§

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere T: Any,

source§

impl Downcast for dyn AnyCloneable + Send

source§

fn is<T>(&self) -> boolwhere T: AsAny,

Returns true if the boxed type is the same as T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,

Forward to the method defined on the type Any.
source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,

Forward to the method defined on the type Any.
source§

unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere T: Any,

source§

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere T: Any,

source§

impl Downcast for dyn AnyCloneable + Send + Sync

source§

fn is<T>(&self) -> boolwhere T: AsAny,

Returns true if the boxed type is the same as T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,

Forward to the method defined on the type Any.
source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,

Forward to the method defined on the type Any.
source§

unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere T: Any,

source§

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere T: Any,

source§

impl Downcast for dyn AnyCloneable + Sync

source§

fn is<T>(&self) -> boolwhere T: AsAny,

Returns true if the boxed type is the same as T. Read more
source§

fn downcast_ref<T>(&self) -> Option<&T>where T: AsAny,

Forward to the method defined on the type Any.
source§

fn downcast_mut<T>(&mut self) -> Option<&mut T>where T: AsAny,

Forward to the method defined on the type Any.
source§

unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere T: Any,

source§

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere T: Any,

Implementors§

source§

impl<T: Clone + Debug + Any + 'static> AnyCloneable for T