pub trait Transformable: Clone {
// Required method
fn transform(&mut self, t: &Transformation) -> &mut Self;
// Provided method
fn transform_clone(&self, t: &Transformation) -> Self { ... }
}
Expand description
Trait for types that can be transformed by a Transformation.
Required Methods§
fn transform(&mut self, t: &Transformation) -> &mut Self
Provided Methods§
fn transform_clone(&self, t: &Transformation) -> 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.