pub trait FillClone {
// Required method
fn fill_clone(&self) -> Self;
}Expand description
A FILL-SLOT copy: collections copy DEEP, so every slot of a fill
(n copies of x, [x] * n) is an independent row — never n aliases of
one row (the classic [[0]] * 3 footgun is designed out). Scalars copy
plain. Mirrors the tree-walker’s recursive RuntimeValue::deep_clone.
Required Methods§
fn fill_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.