Crates.io | expandable_grid |
lib.rs | expandable_grid |
version | 0.1.5 |
source | src |
created_at | 2024-06-30 06:35:05.780337 |
updated_at | 2024-07-12 05:29:24.023801 |
description | A simple, expandable, non-chunked 2d grid ideal for dynamic simulations |
homepage | |
repository | https://github.com/Mycellf/expandable_grid |
max_upload_size | |
id | 1287796 |
size | 16,975 |
This crate provides a simple, expandable 2d grid which can be accessed from arbitrary signed isize coordinates. It stores its data in a unified area in memory, and copies it to another allocation when changing size like a vec does. It always takes up the minimum amount of space for its accessible size, however, it also overexpands when resizing to fit an area to reduce allocations.