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§

source

type Coord: Coord

Coordinate type of bounding rect.

Required Methods§

source

fn bounding_rect(&self) -> Rect<Self::Coord>

Return the smallest axis-aligned bounding rect which contains this shape.

Implementors§