CloneAny

Trait CloneAny 

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

Any, but with cloning.

Every type with no non-'static references that implements Clone implements CloneAny. See core::any for more details on Any in general.

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 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Clone for Box<dyn CloneAny + Send>

Source§

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

Returns a duplicate 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 for Box<dyn CloneAny + Send + Sync>

Source§

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

Returns a duplicate 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 Debug for dyn CloneAny

Source§

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

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

impl Debug for dyn CloneAny + Send

Source§

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

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

impl Debug for dyn CloneAny + Send + Sync

Source§

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

Formats the value using the given formatter. Read more

Implementors§

Source§

impl<T: Any + Clone> CloneAny for T