pub trait Translate: TranslateMut + Sized {
// Provided method
fn translate(self, p: Point) -> Self { ... }
}
Expand description
A trait for specifying how a shape is translated by a Point
.
Takes in an owned copy of the shape and returns the translated version.
Provided Methods§
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.