pub trait Bound {
// Required method
fn bound(&self) -> BoundingRect;
// Provided method
fn overlaps<B>(&self, other: &B) -> bool
where B: Bound { ... }
}Expand description
Any object that has a bounding rect
Required Methods§
fn bound(&self) -> BoundingRect
Provided Methods§
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.