pub trait ExternalClone {
// Required method
fn external_clone(&self) -> Self;
}
Expand description
Helper trait for types which do not implement clone, but has a clone wrapper
Required Methods§
Sourcefn external_clone(&self) -> Self
fn external_clone(&self) -> Self
Clones the internal value
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.