Trait ambient_element::AnyCloneable
source · 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>
impl<'clone> Clone for Box<dyn AnyCloneable + 'clone>
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
.