pub struct TileBounds {
pub west: f64,
pub south: f64,
pub east: f64,
pub north: f64,
}Expand description
Tile bounds in geographic coordinates (degrees).
Fields§
§west: f64Western longitude (degrees)
south: f64Southern latitude (degrees)
east: f64Eastern longitude (degrees)
north: f64Northern latitude (degrees)
Implementations§
Source§impl TileBounds
impl TileBounds
Sourcepub fn center_lon(&self) -> f64
pub fn center_lon(&self) -> f64
Center longitude.
Sourcepub fn center_lat(&self) -> f64
pub fn center_lat(&self) -> f64
Center latitude.
Trait Implementations§
Source§impl Clone for TileBounds
impl Clone for TileBounds
Source§fn clone(&self) -> TileBounds
fn clone(&self) -> TileBounds
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TileBounds
impl Debug for TileBounds
impl Copy for TileBounds
Auto Trait Implementations§
impl Freeze for TileBounds
impl RefUnwindSafe for TileBounds
impl Send for TileBounds
impl Sync for TileBounds
impl Unpin for TileBounds
impl UnsafeUnpin for TileBounds
impl UnwindSafe for TileBounds
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