pub trait DeepClone {
// Required method
fn deep_clone(&self, math: &mut Math) -> Self;
}
Expand description
Deep clone a mathematical expression. This is different from Clone
in that
it works with the math stage’s flattened memory model and deep clones all of
an expression’s dependencies (subexpressions).
Required Methods§
Sourcefn deep_clone(&self, math: &mut Math) -> Self
fn deep_clone(&self, math: &mut Math) -> Self
Perform a deep clone.
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.