Trait Records

Source
pub trait Records {
    type Iter: IntoRecords;

    // Required methods
    fn iter_rows(self) -> <Self::Iter as IntoRecords>::IterRows;
    fn count_columns(&self) -> usize;
    fn hint_count_rows(&self) -> Option<usize>;
}
Expand description

Records represents table data.

Required Associated Types§

Source

type Iter: IntoRecords

Iterator which goes over rows.

Required Methods§

Source

fn iter_rows(self) -> <Self::Iter as IntoRecords>::IterRows

Returns a iterator over rows.

Source

fn count_columns(&self) -> usize

Returns count of columns in the records.

Source

fn hint_count_rows(&self) -> Option<usize>

Hint amount of rows in the records.

Implementors§

Source§

impl<'a, I> Records for &'a IterRecords<I>

Source§

impl<'a, T> Records for &'a VecRecords<T>

Source§

type Iter = &'a [Vec<T>]

Source§

impl<I> Records for IterRecords<I>
where I: IntoRecords,

Source§

type Iter = I

Source§

impl<T> Records for VecRecords<T>

Source§

type Iter = Vec<Vec<T>>