h3o 0.11.0

A Rust implementation of the H3 geospatial indexing system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;
use core::convert::TryFrom;

#[test]
fn disk_distance_safe_is_fused() {
    let origin = CellIndex::try_from(0x85002c27fffffff).unwrap();
    let mut iter = Children::new(origin, Resolution::Six);

    for _ in 0..7 {
        assert!(iter.next().is_some());
    }
    for _ in 0..7 {
        assert!(iter.next().is_none());
    }
}