BoundingBoxTrait

Trait BoundingBoxTrait 

Source
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§

Source

fn partition(&self) -> Option<(Self, Self)>

Source

fn extend(&self) -> Option<(Self, Self)>

Source

fn is_contained(&self, other: &Self) -> bool

Source

fn intersects(&self, other: &Self) -> bool

Source

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.

Implementors§