[][src]Struct shapefile::record::BBox

pub struct BBox {
    pub xmin: f64,
    pub ymin: f64,
    pub xmax: f64,
    pub ymax: f64,
}

2D (x, y) Bounding box

Fields

xmin: f64ymin: f64xmax: f64ymax: f64

Methods

impl BBox[src]

pub fn from_points<PointType: HasXY>(points: &[PointType]) -> Self[src]

Creates a new bounding box by computing the extent from any slice of points that have a x and y coordinates

pub fn new(xmin: f64, ymin: f64, xmax: f64, ymax: f64) -> Self[src]

pub fn read_from<T: Read>(source: T) -> Result<BBox, Error>[src]

pub fn write_to<T: Write>(&self, dest: T) -> Result<(), Error>[src]

Trait Implementations

impl Clone for BBox[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for BBox[src]

Auto Trait Implementations

impl Sync for BBox

impl Send for BBox

impl Unpin for BBox

impl RefUnwindSafe for BBox

impl UnwindSafe for BBox

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]