Grid¶
A 2D rectangle of styled cells. Immutable for safe passing between actors. Row-major layout: index = (row * width) + col.
Constructors¶
filled¶
Create a grid where every cell is fill.
Parameters¶
Returns¶
- Grid val^
Public fields¶
let width: USize val¶
let height: USize val¶
Public Functions¶
apply¶
Look up a cell by (col, row). Returns GridCellOutOfBounds if out of range.
Parameters¶
Returns¶
- (Cell val | GridCellOutOfBounds val)