pub trait ExactRecords {
    // Required method
    fn count_rows(&self) -> usize;
}
Expand description

Records extension which guarantees the amount of rows.

Required Methods§

source

fn count_rows(&self) -> usize

Returns an exact amount of rows in records.

It must be guaranteed that an iterator will yield this amount.

Implementations on Foreign Types§

source§

impl<T> ExactRecords for &T
where T: ExactRecords,

source§

impl<T> ExactRecords for [T]

source§

impl<T> ExactRecords for Vec<T>

Implementors§