pub trait ShallowClone: Clone {
// Provided method
fn shallow_clone(&self) -> Self { ... }
}Expand description
A marker trait for types that support cloning without having to copy all indexed values.
This likely means that either:
- The type uses persistent data structures internally (e.g.,
crate::index::im::BTreeIndex) - The type only works using aggregations that do not store all samples (e.g.,
crate::aggregation::Count)
Provided Methods§
fn shallow_clone(&self) -> Self
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.
Implementations on Foreign Types§
impl ShallowClone for ()
impl ShallowClone for HashSet<Key>
Available on crate feature
imbl only.impl ShallowClone for OrdSet<Key>
Available on crate feature
imbl only.