#17 Doc grid size limit

This commit is contained in:
becheran 2022-08-16 09:15:43 +02:00
parent 4aa88f4a65
commit d3942d37ff

View file

@ -117,6 +117,8 @@ macro_rules! grid {
/// Uses a rust `Vec<T>` type to reference the grid data on the heap. /// Uses a rust `Vec<T>` type to reference the grid data on the heap.
/// Also the number of rows and columns are stored in the grid data structure. /// Also the number of rows and columns are stored in the grid data structure.
/// ///
/// The size limit of a grid is `rows * cols < usize`.
///
/// The grid data is stored in a row-major memory layout. /// The grid data is stored in a row-major memory layout.
pub struct Grid<T> { pub struct Grid<T> {
data: Vec<T>, data: Vec<T>,