pub struct TileId { /* private fields */ }Implementations§
Source§impl TileId
impl TileId
Sourcepub fn from_node_key(key: &NodeKey, tree_size: u64) -> Option<Self>
pub fn from_node_key(key: &NodeKey, tree_size: u64) -> Option<Self>
Sourcepub fn as_url(&self) -> String
pub fn as_url(&self) -> String
Returns the Url path, at which this tile should be found
Append this path to the tile_url, to get the full path.
Sourcepub fn is_partial(&self) -> bool
pub fn is_partial(&self) -> bool
Returns true, if this TileId is partial, false otherwise
Sourcepub fn into_unpartial(self) -> Self
pub fn into_unpartial(self) -> Self
Trait Implementations§
impl Eq for TileId
impl StructuralPartialEq for TileId
Auto Trait Implementations§
impl Freeze for TileId
impl RefUnwindSafe for TileId
impl Send for TileId
impl Sync for TileId
impl Unpin for TileId
impl UnsafeUnpin for TileId
impl UnwindSafe for TileId
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