Skip to main content

CloneAny

Trait CloneAny 

Source
pub trait CloneAny: Any + CloneToAny { }
Expand description

See also Any for a version without the Clone requirement.

Trait Implementations§

Source§

impl Clone for Box<dyn CloneAny>

Source§

fn clone(&self) -> Box<dyn CloneAny>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for dyn CloneAny

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl UncheckedAnyExt for dyn CloneAny

Source§

unsafe fn downcast_ref_unchecked<T>(&self) -> &T

Source§

unsafe fn downcast_mut_unchecked<T>(&mut self) -> &mut T

Source§

unsafe fn downcast_unchecked<T>(self: Box<Self>) -> Box<T>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: StdAny + Clone> CloneAny for T