pub trait RectExt {
// Required methods
fn touches(&self, other: Self) -> bool;
fn overlaps_vertically(&self, other: Self) -> bool;
fn horizontal_distance(&self, other: Self) -> i32;
}
Required Methods§
fn touches(&self, other: Self) -> bool
fn overlaps_vertically(&self, other: Self) -> bool
fn horizontal_distance(&self, other: Self) -> i32
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.