Skip to main content

DynClone

Trait DynClone 

Source
pub(crate) trait DynClone: Sealed { }
Expand description

This trait is implemented by any type that implements [std::clone::Clone].

Trait Implementations§

Source§

impl<'clone> Clone for Box<dyn DynClone + 'clone>

Source§

fn clone(&self) -> Box<dyn DynClone + 'clone>

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<'clone> Clone for Box<dyn DynClone + Send + 'clone>

Source§

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

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<'clone> Clone for Box<dyn DynClone + Sync + 'clone>

Source§

fn clone(&self) -> Box<dyn DynClone + Sync + 'clone>

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<'clone> Clone for Box<dyn DynClone + Sync + Send + 'clone>

Source§

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

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DynClone for str

Source§

impl<T> DynClone for [T]
where T: Clone,

Implementors§

Source§

impl<T> DynClone for T
where T: Clone,