Trait IntoAsTable

Source
pub trait IntoAsTable {
    type Table;
    type RowKey: RowKey;
    type Row: Cells<Self::CellKey>;
    type CellKey: CellKey + ?Sized;

    // Required method
    fn as_table(
        &self,
    ) -> AsTable<'_, Self::Table, Self::RowKey, Self::Row, Self::CellKey>;
}
Expand description

Trait for converting data references into AsTable references.

IntoAsTable provides a way to interpret data as a table, encapsulating the necessary type information for handling table-like structures.

Required Associated Types§

Source

type Table

The type representing the table.

Source

type RowKey: RowKey

The type used to identify each row.

Source

type Row: Cells<Self::CellKey>

The type representing a row, must implement Cells.

Source

type CellKey: CellKey + ?Sized

The type used to identify cells within a row, must implement Key and can be unsized.

Required Methods§

Source

fn as_table( &self, ) -> AsTable<'_, Self::Table, Self::RowKey, Self::Row, Self::CellKey>

Converts the data reference into an AsTable reference.

Implementors§

Source§

impl<'table, Table, RowKey, Row, CellKey> IntoAsTable for AsTable<'table, Table, RowKey, Row, CellKey>
where RowKey: RowKey, Row: Cells<CellKey>, CellKey: CellKey + ?Sized, Self: Copy,

Source§

type Table = Table

Source§

type RowKey = RowKey

Source§

type Row = Row

Source§

type CellKey = CellKey