Struct shapefile::record::bbox::GenericBBox [−][src]
pub struct GenericBBox<PointType> { pub max: PointType, pub min: PointType, }
The Bounding Box type used in this crate.
Each shape that is a collection of points have a bounding box
associated to it generally accessible using the bbox()
method.
Example
use shapefile::{PointM, PolylineM}; let poly = PolylineM::new(vec![ PointM::new(1.0, 2.0, 13.42), PointM::new(2.0, 1.0, 42.3713), ]); let bbox = poly.bbox(); assert_eq!(bbox.min, PointM::new(1.0, 1.0, 13.42)); assert_eq!(bbox.max, PointM::new(2.0, 2.0, 42.3713));
Fields
max: PointType
min: PointType
Implementations
impl<PointType: HasXY> GenericBBox<PointType>
[src]
impl<PointType: HasXY> GenericBBox<PointType>
[src]Trait Implementations
impl<PointType: Clone> Clone for GenericBBox<PointType>
[src]
impl<PointType: Clone> Clone for GenericBBox<PointType>
[src]fn clone(&self) -> GenericBBox<PointType>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<PointType: Copy> Copy for GenericBBox<PointType>
[src]
impl<PointType: Copy> Copy for GenericBBox<PointType>
[src]impl<PointType: Debug> Debug for GenericBBox<PointType>
[src]
impl<PointType: Debug> Debug for GenericBBox<PointType>
[src]impl<PointType: PartialEq> PartialEq<GenericBBox<PointType>> for GenericBBox<PointType>
[src]
impl<PointType: PartialEq> PartialEq<GenericBBox<PointType>> for GenericBBox<PointType>
[src]fn eq(&self, other: &GenericBBox<PointType>) -> bool
[src]
fn ne(&self, other: &GenericBBox<PointType>) -> bool
[src]
impl<PointType> StructuralPartialEq for GenericBBox<PointType>
[src]
impl<PointType> StructuralPartialEq for GenericBBox<PointType>
[src]Auto Trait Implementations
impl<PointType> RefUnwindSafe for GenericBBox<PointType> where
PointType: RefUnwindSafe,
impl<PointType> RefUnwindSafe for GenericBBox<PointType> where
PointType: RefUnwindSafe,
impl<PointType> Send for GenericBBox<PointType> where
PointType: Send,
impl<PointType> Send for GenericBBox<PointType> where
PointType: Send,
impl<PointType> Sync for GenericBBox<PointType> where
PointType: Sync,
impl<PointType> Sync for GenericBBox<PointType> where
PointType: Sync,
impl<PointType> Unpin for GenericBBox<PointType> where
PointType: Unpin,
impl<PointType> Unpin for GenericBBox<PointType> where
PointType: Unpin,
impl<PointType> UnwindSafe for GenericBBox<PointType> where
PointType: UnwindSafe,
impl<PointType> UnwindSafe for GenericBBox<PointType> where
PointType: UnwindSafe,