Trait libreda_pnr::db::TryIntoBoundingBox[][src]

pub trait TryIntoBoundingBox<T> {
    fn try_into_bounding_box(self) -> Option<Rect<T>>;
}
Expand description

Try to compute the bounding box while consuming the data. This is intended to be used for computing bounding boxes over iterators.

Required methods

Return the bounding box of this geometry if such bounding box is defined.

Implementors

Compute the bounding box of many objects that may have a bounding box.