ambient_element

Trait 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 Downcast for dyn AnyCloneable

Source§

fn is<T>(&self) -> bool
where 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) -> &T
where T: Any,

Source§

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

Source§

impl Downcast for dyn AnyCloneable + Send

Source§

fn is<T>(&self) -> bool
where 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) -> &T
where T: Any,

Source§

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

Source§

impl Downcast for dyn AnyCloneable + Send + Sync

Source§

fn is<T>(&self) -> bool
where 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) -> &T
where T: Any,

Source§

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

Source§

impl Downcast for dyn AnyCloneable + Sync

Source§

fn is<T>(&self) -> bool
where 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) -> &T
where T: Any,

Source§

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

Implementors§

Source§

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