[−][src]Function libh3::h3_to_parent
pub fn h3_to_parent(h: H3Index, resolution: Resolution) -> H3Index
Returns the parent (coarser) index containing h3.
Arguments
h
- The index of the child resolution.resolution
- The resolution of the desired level.
use libh3::h3_to_parent; assert_eq!(h3_to_parent(0x8a2a1072b4a7fff, 5), 0x852a1073fffffff);