mirror of
https://github.com/maplibre/maplibre-rs.git
synced 2025-12-08 19:05:57 +00:00
Implement Display
This commit is contained in:
parent
1344e1bb99
commit
b91c9ea2d1
@ -1,3 +1,5 @@
|
||||
use std::fmt::{Display, Formatter};
|
||||
|
||||
pub mod cache;
|
||||
pub mod static_database;
|
||||
|
||||
@ -14,6 +16,12 @@ impl TileCoords {
|
||||
}
|
||||
}
|
||||
|
||||
impl Display for TileCoords {
|
||||
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
|
||||
write!(f, "({x}, {y}, {z})", x = self.x, y = self.y, z = self.z)
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<TileCoords> for (u32, u32, u8) {
|
||||
fn into(self) -> TileCoords {
|
||||
TileCoords {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user