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

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

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

Performs copy-assignment from source. Read more
Source§

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

Source§

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

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

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

Performs copy-assignment from source. Read more

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,