Trait libreda_db::layout::prelude::traits::TryIntoBoundingBox

source ·
pub trait TryIntoBoundingBox<T> {
    // Required method
    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§

source

fn try_into_bounding_box(self) -> Option<Rect<T>>

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

Implementors§

source§

impl<'a, I, B, T> TryIntoBoundingBox<T> for I
where I: Iterator<Item = &'a B>, B: TryBoundingBox<T> + 'a, T: Copy + PartialOrd,

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