Skip to main content

Module table_row

Module table_row 

Source
Expand description

A newtype for a table row that enforces a fixed column count at runtime.

This type ensures that all rows in a table have the same width, preventing accidental creation or mutation of rows with inconsistent lengths. It is especially useful for CSV or tabular data where rectangular invariants must be maintained, but the number of columns is only known at runtime. By using TableRow, we gain stronger guarantees and safer APIs compared to a bare Vec<T>, without requiring const generics.

Structs§

TableRow

Traits§

IntoTableRow