Crates.io | slice2d |
lib.rs | slice2d |
version | 0.1.1 |
source | src |
created_at | 2024-05-27 08:50:16.197761 |
updated_at | 2024-05-27 08:52:37.195143 |
description | Ergonomic array slice for 2d array manipulation. |
homepage | |
repository | https://github.com/mintlu8/slice2d |
max_upload_size | |
id | 1253196 |
size | 20,153 |
Ergonomic array slice for 2d array manipulation.
let vector = vec![1, 2, 3, 4, 5, 6];
let slice = vector.get_slice2d(3, 2).unwrap();
assert_eq!(slice[2][0], 5);
assert_eq!(&slice[1], &[3, 4]);