grid
grid copied to clipboard
Two dimensional grid data structure
I would like to be able to get an entire row as a slice. Since the internal vector saves the rows continuously (at least for one of the allocation options,...
A method like `swap((row_a, col_a), (row_b, col_b))` would be very useful, since only the underlying vector has ownership of the values and can move them around.
See discussion in #32
I cant initialize grid with defined size because struct i use not impl Default I dont understand bound to Default trait because its possible to create vec and even Vec...
closes https://github.com/becheran/grid/issues/42
Closes https://github.com/becheran/grid/issues/27. Not really happy with with_capacity_panics_vec test as there are multiple panic reasons possible, while i only want to check one, but i don't know enough about rust testing...
Adds `get_row` and `get_col` functions to access the corresponding underlying slice of a selected row/column, returning `None` if out of bounds or if the values are not contiguous (e.g., a...
I often use signed values for computing locations on the grid, and one annoyance is that `indexed_iter()` forces `usize`. It would be nice to have some way to control the...