pub struct AvailableRange {
pub start_x: u32,
pub end_x: u32,
pub start_y: u32,
pub end_y: u32,
}Expand description
Tile availability range for metadata extension.
Fields§
§start_x: u32Starting X coordinate (inclusive)
end_x: u32Ending X coordinate (inclusive)
start_y: u32Starting Y coordinate (inclusive)
end_y: u32Ending Y coordinate (inclusive)
Implementations§
Source§impl AvailableRange
impl AvailableRange
Sourcepub fn new(start_x: u32, end_x: u32, start_y: u32, end_y: u32) -> Self
pub fn new(start_x: u32, end_x: u32, start_y: u32, end_y: u32) -> Self
Create a new availability range.
Sourcepub fn full_level_geodetic(zoom: u8) -> Self
pub fn full_level_geodetic(zoom: u8) -> Self
Create a range covering the full level (global-geodetic).
For Cesium’s global-geodetic TMS, at zoom level z:
- X: 0 to 2^(z+1) - 1
- Y: 0 to 2^z - 1
Trait Implementations§
Source§impl Clone for AvailableRange
impl Clone for AvailableRange
Source§fn clone(&self) -> AvailableRange
fn clone(&self) -> AvailableRange
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 AvailableRange
impl Debug for AvailableRange
Source§impl<'de> Deserialize<'de> for AvailableRange
impl<'de> Deserialize<'de> for AvailableRange
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
Auto Trait Implementations§
impl Freeze for AvailableRange
impl RefUnwindSafe for AvailableRange
impl Send for AvailableRange
impl Sync for AvailableRange
impl Unpin for AvailableRange
impl UnsafeUnpin for AvailableRange
impl UnwindSafe for AvailableRange
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