pub struct MapBbox { /* private fields */ }Implementations§
Source§impl 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§
impl Copy for MapBbox
impl Eq for MapBbox
impl StructuralPartialEq for MapBbox
Auto Trait Implementations§
impl Freeze for MapBbox
impl RefUnwindSafe for MapBbox
impl Send for MapBbox
impl Sync for MapBbox
impl Unpin for MapBbox
impl UnwindSafe for MapBbox
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more