pub struct TileRequest { /* private fields */ }Expand description
A struct containing the arguments required to make a request for a tile
Implementations§
Source§impl TileRequest
impl TileRequest
Sourcepub fn new(
set: TileSet,
x: u32,
y: u32,
zoom: u32,
) -> Result<Self, ArgumentError>
pub fn new( set: TileSet, x: u32, y: u32, zoom: u32, ) -> Result<Self, ArgumentError>
Creates a new TileRequest with the given parameters
set: A TileSet representing which tileset to get the tile from. See https://cloud.maptiler.com/tiles/
x: The x-coordinate of the tile in the Tiled Web Map format y: The y-coordinate of the tile zoom: The zoom level of the tile in the Tile Web Map format
The x and y positions must be in bounds
Trait Implementations§
Source§impl Clone for TileRequest
impl Clone for TileRequest
Source§fn clone(&self) -> TileRequest
fn clone(&self) -> TileRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 TileRequest
impl Debug for TileRequest
Source§impl From<TileRequest> for RequestType
impl From<TileRequest> for RequestType
Source§fn from(tile_request: TileRequest) -> Self
fn from(tile_request: TileRequest) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TileRequest
impl PartialEq for TileRequest
impl Copy for TileRequest
impl Eq for TileRequest
impl StructuralPartialEq for TileRequest
Auto Trait Implementations§
impl Freeze for TileRequest
impl RefUnwindSafe for TileRequest
impl Send for TileRequest
impl Sync for TileRequest
impl Unpin for TileRequest
impl UnwindSafe for TileRequest
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.