pub trait AABB: Copy {
type V2: Vec2;
// Required methods
fn ll(&self) -> Self::V2;
fn ur(&self) -> Self::V2;
// Provided method
fn intersects(&self, b: &Self) -> bool { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn intersects(&self, b: &Self) -> bool
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.