| Crates.io | gridsystem |
| lib.rs | gridsystem |
| version | 0.1.0 |
| created_at | 2025-12-01 21:22:00.861057+00 |
| updated_at | 2025-12-01 21:22:00.861057+00 |
| description | A high-performance, parallel-capable 2D grid library. |
| homepage | |
| repository | https://github.com/jathn/gridsystem |
| max_upload_size | |
| id | 1960670 |
| size | 38,617 |
A high-performance, parallel-capable 2D grid library for Rust.
rayon to perform parallel operations on grid cells.Default and Clone.Add this to your Cargo.toml:
[dependencies]
gridsystem = "0.1.0"
use gridsystem::Grid;
fn main() {
let mut grid = Grid::new(10, 10);
grid.set(5, 5, 42).unwrap();
assert_eq!(*grid.get(5, 5).unwrap(), 42);
}
use gridsystem::Grid;
fn main() {
let grid: Grid<i32> = Grid::with_value(100, 100, 1);
// Create a new grid with values doubled in parallel
let doubled = grid.par_map(|x, y, &val| val * 2);
assert_eq!(*doubled.get(0, 0).unwrap(), 2);
}
This project is licensed under the MIT License.