pub struct BoundingBox<T>where
T: CoordNum,{
pub min: Coord<T>,
pub max: Coord<T>,
}
Expand description
A bounded 2D quadrilateral whose area is defined by minimum and maximum Coords
.
A simple implementation copied from geo_types 0.4.0, because this version is a better fit for the needs of this crate than the newer ones.
Fields§
§min: Coord<T>
§max: Coord<T>
Implementations§
Trait Implementations§
Source§impl<T> Clone for BoundingBox<T>
impl<T> Clone for BoundingBox<T>
Source§fn clone(&self) -> BoundingBox<T>
fn clone(&self) -> BoundingBox<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Debug for BoundingBox<T>
impl<T> Debug for BoundingBox<T>
Source§impl<T> PartialEq for BoundingBox<T>
impl<T> PartialEq for BoundingBox<T>
impl<T> Copy for BoundingBox<T>
impl<T> StructuralPartialEq for BoundingBox<T>where
T: CoordNum,
Auto Trait Implementations§
impl<T> Freeze for BoundingBox<T>where
T: Freeze,
impl<T> RefUnwindSafe for BoundingBox<T>where
T: RefUnwindSafe,
impl<T> Send for BoundingBox<T>where
T: Send,
impl<T> Sync for BoundingBox<T>where
T: Sync,
impl<T> Unpin for BoundingBox<T>where
T: Unpin,
impl<T> UnwindSafe for BoundingBox<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more