Trait rten_imageproc::BoundingRect
source · pub trait BoundingRect {
type Coord: Coord;
// Required method
fn bounding_rect(&self) -> Rect<Self::Coord>;
}
Expand description
Trait for shapes which have a well-defined bounding rectangle.
Required Associated Types§
Required Methods§
sourcefn bounding_rect(&self) -> Rect<Self::Coord>
fn bounding_rect(&self) -> Rect<Self::Coord>
Return the smallest axis-aligned bounding rect which contains this shape.