pub trait RectExt {
type Point;
// Required methods
fn top_left(&self) -> Self::Point;
fn top_right(&self) -> Self::Point;
fn bottom_left(&self) -> Self::Point;
fn bottom_right(&self) -> Self::Point;
}Required Associated Types§
Required Methods§
fn top_left(&self) -> Self::Point
fn top_right(&self) -> Self::Point
fn bottom_left(&self) -> Self::Point
fn bottom_right(&self) -> Self::Point
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".