pub trait TransformableFrom: Transformable {
// Required method
fn transform_from(
&mut self,
reference: &Self,
t: &Transformation,
) -> &mut Self;
}
Expand description
Trait for types that can be transformed based on a reference object with a Transformation applied. Used for repeated transformations on an identical reference shape without reallocating new memory each time.
Required Methods§
fn transform_from(&mut self, reference: &Self, t: &Transformation) -> &mut 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.