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 Downcast for dyn AnyCloneable
impl Downcast for dyn AnyCloneable
Source§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
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,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere
T: Any,
Source§impl Downcast for dyn AnyCloneable + Send
impl Downcast for dyn AnyCloneable + Send
Source§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
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,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere
T: Any,
Source§impl Downcast for dyn AnyCloneable + Send + Sync
impl Downcast for dyn AnyCloneable + Send + Sync
Source§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
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,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.unsafe fn downcast_ref_unchecked<T>(&self) -> &Twhere
T: Any,
unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut Twhere
T: Any,
Source§impl Downcast for dyn AnyCloneable + Sync
impl Downcast for dyn AnyCloneable + Sync
Source§fn downcast_ref<T>(&self) -> Option<&T>where
T: AsAny,
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,
fn downcast_mut<T>(&mut self) -> Option<&mut T>where
T: AsAny,
Forward to the method defined on the type
Any
.