pub trait Corners {
// Required methods
fn top_left(&self) -> Point;
fn top_right(&self) -> Point;
fn bottom_left(&self) -> Point;
fn bottom_right(&self) -> Point;
}Expand description
Replacement for methods removed from Euclid
Required Methods§
fn top_left(&self) -> Point
fn top_right(&self) -> Point
fn bottom_left(&self) -> Point
fn bottom_right(&self) -> Point
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".