pub trait BoundingBoxTrait:
Sized
+ Clone
+ Default
+ Debug {
// Required methods
fn partition(&self) -> Option<(Self, Self)>;
fn extend(&self) -> Option<(Self, Self)>;
fn is_contained(&self, other: &Self) -> bool;
fn intersects(&self, other: &Self) -> bool;
fn is_sub_scale(&self, other: &Self) -> bool;
}Required Methods§
fn partition(&self) -> Option<(Self, Self)>
fn extend(&self) -> Option<(Self, Self)>
fn is_contained(&self, other: &Self) -> bool
fn intersects(&self, other: &Self) -> bool
fn is_sub_scale(&self, other: &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.