Trait ExactRecords

Source
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§