Trait DeepClone

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl DeepClone for EntityIndex

Source§

fn deep_clone(&self, _math: &mut Math) -> Self

Source§

impl DeepClone for VarIndex

Source§

fn deep_clone(&self, math: &mut Math) -> Self

Source§

impl<T: DeepClone> DeepClone for Vec<T>

Source§

fn deep_clone(&self, math: &mut Math) -> Self

Implementors§