grid_trait::grid2
pub fn alloc_gen<I, T, F>(x_len: i32, y_len: i32, generator: F) -> ArrayGrid2<T> where I: From<Vector2<i32>>, F: FnMut(I) -> T,
Allocate a grid on the heap, populate with a function.