Struct ofdb_entities::geo::MapBbox
source · [−]pub struct MapBbox { /* private fields */ }Implementations
sourceimpl MapBbox
impl MapBbox
pub const fn new(sw: MapPoint, ne: MapPoint) -> Self
sourcepub fn centered_around(
center: MapPoint,
lat_width: Distance,
lng_height: Distance
) -> Self
pub fn centered_around(
center: MapPoint,
lat_width: Distance,
lng_height: Distance
) -> Self
Create a bounding box with a center point and given width/height
pub const fn southwest(&self) -> MapPoint
pub const fn northeast(&self) -> MapPoint
pub fn is_valid(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn contains_point(&self, pt: MapPoint) -> bool
Trait Implementations
sourceimpl PartialEq<MapBbox> for MapBbox
impl PartialEq<MapBbox> for MapBbox
impl Copy for MapBbox
impl Eq for MapBbox
impl StructuralEq for MapBbox
impl StructuralPartialEq for MapBbox
Auto Trait Implementations
impl RefUnwindSafe for MapBbox
impl Send for MapBbox
impl Sync for MapBbox
impl Unpin for MapBbox
impl UnwindSafe for MapBbox
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more