-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
hextree::Cell
for BoostedHex and HexCoverage
Got some advice from Jay to only use a `h3o::CellIndex` when you need to convert to/from a LatLng. So we went with `hextree::Cell` for the type. `hextree::Cell` is a loose wrapper around a u64. Parsing the value as early as possible tightens the gaurantee that we can make valid types that need use `Cell`s. It is also an attempt to remove discrepancies where some types carry a `i64` hex straight from a database, and other types carry a `u64` that were converted out of a database, even though they're goal is the same. (see previous commit where `#[sqlx(try_from = "i64")]` was enabled by the update to hextree).
- Loading branch information
1 parent
277c0d3
commit e3e5057
Showing
8 changed files
with
122 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.