[−][src]Struct shapefile::record::BBox
2D (x, y) Bounding box
Fields
xmin: f64
ymin: f64
xmax: f64
ymax: 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(&self) -> 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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,