slice2d

Crates.ioslice2d
lib.rsslice2d
version0.1.1
sourcesrc
created_at2024-05-27 08:50:16.197761
updated_at2024-05-27 08:52:37.195143
descriptionErgonomic array slice for 2d array manipulation.
homepage
repositoryhttps://github.com/mintlu8/slice2d
max_upload_size
id1253196
size20,153
Mincong Lu (mintlu8)

documentation

README

slice2d

Ergonomic array slice for 2d array manipulation.

Example

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]);
Commit count: 4

cargo fmt