pub trait HasBoundingBox {
type BoundingBox: GeometricPrimitive;
// Required method
fn bounding_box(&self) -> Self::BoundingBox;
}Expand description
Provides access to a primitive’s bounding box.
Required Associated Types§
Sourcetype BoundingBox: GeometricPrimitive
type BoundingBox: GeometricPrimitive
Bounding box type associated with the primitive.
Required Methods§
Sourcefn bounding_box(&self) -> Self::BoundingBox
fn bounding_box(&self) -> Self::BoundingBox
Computes the bounding box.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".