pub struct TileAvailability {
pub start_x: u32,
pub start_y: u32,
pub end_x: u32,
pub end_y: u32,
}Expand description
One available tile range at a single zoom level.
(start_x, start_y) and (end_x, end_y) are inclusive.
Fields§
§start_x: u32Starting X coordinate (inclusive).
start_y: u32Starting Y coordinate (inclusive).
end_x: u32Ending X coordinate (inclusive).
end_y: u32Ending Y coordinate (inclusive).
Implementations§
Source§impl TileAvailability
impl TileAvailability
Sourcepub const fn new(start_x: u32, start_y: u32, end_x: u32, end_y: u32) -> Self
pub const fn new(start_x: u32, start_y: u32, end_x: u32, end_y: u32) -> Self
Create a new range.
Sourcepub fn full_level_geodetic_tms(zoom: u8) -> Self
pub fn full_level_geodetic_tms(zoom: u8) -> Self
Full zoom level in the global-geodetic TMS scheme
(2^(z+1) × 2^z tiles).
Sourcepub fn full_level_xyz(zoom: u8) -> Self
pub fn full_level_xyz(zoom: u8) -> Self
Full zoom level in Web Mercator XYZ (2^z × 2^z tiles).
Sourcepub fn from_bounds_geodetic_tms(
zoom: u8,
west: f64,
south: f64,
east: f64,
north: f64,
) -> Self
pub fn from_bounds_geodetic_tms( zoom: u8, west: f64, south: f64, east: f64, north: f64, ) -> Self
Range covering (west, south, east, north) in the global-geodetic
TMS scheme.
Trait Implementations§
Source§impl Clone for TileAvailability
impl Clone for TileAvailability
Source§fn clone(&self) -> TileAvailability
fn clone(&self) -> TileAvailability
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 TileAvailability
impl Debug for TileAvailability
Source§impl<'de> Deserialize<'de> for TileAvailability
impl<'de> Deserialize<'de> for TileAvailability
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TileAvailability
impl PartialEq for TileAvailability
Source§fn eq(&self, other: &TileAvailability) -> bool
fn eq(&self, other: &TileAvailability) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TileAvailability
impl Serialize for TileAvailability
impl Copy for TileAvailability
impl Eq for TileAvailability
impl StructuralPartialEq for TileAvailability
Auto Trait Implementations§
impl Freeze for TileAvailability
impl RefUnwindSafe for TileAvailability
impl Send for TileAvailability
impl Sync for TileAvailability
impl Unpin for TileAvailability
impl UnsafeUnpin for TileAvailability
impl UnwindSafe for TileAvailability
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