pub trait TranslateRef: Sized {
// Required method
fn translate_ref(&self, p: Point) -> Self;
}
Expand description
A trait for specifying how a shape is translated by a Point
.
Required Methods§
Sourcefn translate_ref(&self, p: Point) -> Self
fn translate_ref(&self, p: Point) -> Self
Translates the shape by Point
, returning a new shape.
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.