pub struct BoundingBox { /* private fields */ }Implementations§
Source§impl BoundingBox
impl BoundingBox
pub fn new(south_west: Coordinate, north_east: Coordinate) -> Self
pub fn south_west(&self) -> Coordinate
pub fn north_east(&self) -> Coordinate
pub fn min_lat(&self) -> f64
pub fn max_lat(&self) -> f64
pub fn min_lon(&self) -> f64
pub fn max_lon(&self) -> f64
pub fn contains(&self, coord: Coordinate) -> bool
pub fn center(&self) -> Coordinate
Trait Implementations§
Source§impl Clone for BoundingBox
impl Clone for BoundingBox
Source§fn clone(&self) -> BoundingBox
fn clone(&self) -> BoundingBox
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 Debug for BoundingBox
impl Debug for BoundingBox
Source§impl PartialEq for BoundingBox
impl PartialEq for BoundingBox
impl Copy for BoundingBox
impl StructuralPartialEq for BoundingBox
Auto Trait Implementations§
impl Freeze for BoundingBox
impl RefUnwindSafe for BoundingBox
impl Send for BoundingBox
impl Sync for BoundingBox
impl Unpin for BoundingBox
impl UnwindSafe for BoundingBox
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