Skip to main content

HasBoundingBox2D

Trait HasBoundingBox2D 

Source
pub trait HasBoundingBox2D: HasBoundingBox2DMaybe {
    // Required method
    fn bounding_box(&self) -> BoundingBox2D;
}
Expand description

HasBoundingBox2D is a trait for types which have a bounding box

Required Methods§

Source

fn bounding_box(&self) -> BoundingBox2D

Should return the bounding box if it can be calculated

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§