pub fn to_leaves(array: &dyn Array, leaves: &mut Vec<Box<dyn Array>>)
Convert Array to a Vec<Box<dyn Array>> leaves in DFS order.
Array
Vec<Box<dyn Array>>
Each leaf array has the validity propagated from the nesting levels above.