pub fn h3_to_children(h: H3Index, resolution: Resolution) -> Vec<H3Index> {
    let max = max_h3_to_children_size(h, resolution) as usize;
    let mut result = Vec::<H3Index>::with_capacity(max as usize);
    unsafe {
        libh3_sys::h3ToChildren(h, resolution as i32, result.as_mut_ptr());
        result.set_len(max as usize);
        result
    }
}
/// Returns children indexes contained by the given index at the given resolution.
///
/// # Arguments
///
/// * `h` - The index of the child resolution.
/// * `resolution` - The resolution of the desired level.
///
/// ```
/// use libh3::h3_to_children;
/// assert_eq!(
///     h3_to_children(0x852a1073fffffff, 6),
///     vec![
///         0x862a10707ffffff,
///         0x862a1070fffffff,
///         0x862a10717ffffff,
///         0x862a1071fffffff,
///         0x862a10727ffffff,
///         0x862a1072fffffff,
///         0x862a10737ffffff
///     ]
/// );
/// ```
Returns children indexes contained by the given index at the given resolution.
Returns children indexes contained by the given index at the given resolution .
pub fn h3_to_children(h: H3Index, resolution: Resolution) -> Vec<H3Index> {
    let max = max_h3_to_children_size(h, resolution) as usize;
    let mut result = Vec::<H3Index>::with_capacity(max as usize);
    unsafe {
        libh3_sys::h3ToChildren(h, resolution as i32, result.as_mut_ptr());
        result.set_len(max as usize);
        result
    }
}
pub fn h3_to_children ( h : H3Index , resolution : Resolution ) -> Vec < H3Index > { let max = max_h3_to_children_size ( h , resolution ) as usize ; let mut result = Vec :: < H3Index > :: with_capacity ( max as usize ) ; unsafe { libh3_sys :: h3ToChildren ( h , resolution as i32 , result . as_mut_ptr ( ) ) ; result . set_len ( max as usize ) ; result } }
Returns children indexes contained by the given index at the given resolution.
Returns children indexes contained by the given index at the given resolution .
h
H3Index
resolution
Resolution
h
H3Index
resolution
Resolution