Skip to content

Commit

Permalink
Make the internal u64 of TileId public
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Dec 19, 2023
1 parent 16e5a15 commit 1418e65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ use crate::{Container, ContainerKind};
/// This id is unique within the tree, but not across trees.
#[derive(Clone, Copy, Hash, PartialEq, Eq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub struct TileId(u64);
pub struct TileId(pub u64);

impl TileId {
pub(crate) fn from_u64(n: u64) -> Self {
pub fn from_u64(n: u64) -> Self {
Self(n)
}

Expand Down

0 comments on commit 1418e65

Please sign in to comment.