pub fn h3_to_geo_boundary(h3: H3Index) -> GeoBoundary {
    unsafe {
        let mut boundary_result: MaybeUninit<libh3_sys::GeoBoundary> =
            MaybeUninit::uninit().assume_init();
        libh3_sys::h3ToGeoBoundary(h3, boundary_result.as_mut_ptr());
        let boundary = boundary_result.assume_init();
        let mut result = Vec::with_capacity(boundary.numVerts as usize);
        for i in 0..boundary.numVerts as usize {
            result.push(GeoCoord::new(boundary.verts[i].lat, boundary.verts[i].lon));
        }
        result
    }
}
/// Convert a H3 index value to a GeoBoundary which are a
/// vector of points that describe a H3 Index's boundary
///
/// ```
/// use libh3::h3_to_geo_boundary;
/// let foo = h3_to_geo_boundary(0x8a2a1072b59ffff);
/// assert_eq!(foo.len(), 6);
/// ```
Convert a H3 index value to a GeoBoundary which are a
vector of points that describe a H3 Index's boundary


Convert a H3 index value to a GeoBoundary which are a vector of points that describe a H3 Index ' s boundary
pub fn h3_to_geo_boundary(h3: H3Index) -> GeoBoundary {
    unsafe {
        let mut boundary_result: MaybeUninit<libh3_sys::GeoBoundary> =
            MaybeUninit::uninit().assume_init();
        libh3_sys::h3ToGeoBoundary(h3, boundary_result.as_mut_ptr());
        let boundary = boundary_result.assume_init();
        let mut result = Vec::with_capacity(boundary.numVerts as usize);
        for i in 0..boundary.numVerts as usize {
            result.push(GeoCoord::new(boundary.verts[i].lat, boundary.verts[i].lon));
        }
        result
    }
}
pub fn h3_to_geo_boundary ( h3 : H3Index ) -> GeoBoundary { unsafe { let mut boundary_result : MaybeUninit < libh3_sys :: GeoBoundary > = MaybeUninit :: uninit ( ) . assume_init ( ) ; libh3_sys :: h3ToGeoBoundary ( h3 , boundary_result . as_mut_ptr ( ) ) ; let boundary = boundary_result . assume_init ( ) ; let mut result = Vec :: with_capacity ( boundary . numVerts as usize ) ; for i in 0 .. boundary . numVerts as usize { result . push ( GeoCoord :: new ( boundary . verts [ i ] . lat , boundary . verts [ i ] . lon ) ) ; } result } }
Convert a H3 index value to a GeoBoundary which are a
vector of points that describe a H3 Index's boundary
Convert a H3 index value to a GeoBoundary which are a vector of points that describe a H3 Index ' s boundary
h3
H3Index
h3
H3Index