Trait CheapClone

Source
pub trait CheapClone: Clone { }
Expand description

A type whose clone() involves copying no more than 8-16 bytes of data.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T: Clone + Deref> CheapClone for T