table_with_row_count

Function table_with_row_count 

Source
pub fn table_with_row_count<'a, S: Scalar>(
    iter: impl IntoIterator<Item = (Ident, Column<'a, S>)>,
    row_count: usize,
) -> Table<'a, S>
Expand description

Creates an Table from a list of (Ident, Column) pairs with a specified row count. The main reason for this function is to allow for creating tables that may potentially have no columns, but still have a specified row count.

§Panics

  • Panics if the given row count doesn’t match the number of rows in any of the columns.