pub trait BackendRows {
    // Required methods
    fn next<'a>(&'a mut self) -> Result<Option<&'a (dyn BackendRow + 'a)>>;
    fn current<'a>(&'a self) -> Option<&'a (dyn BackendRow + 'a)>;

    // Provided method
    fn mapped<F, B>(self, f: F) -> MapDeref<Self, F>
       where Self: Sized,
             F: FnMut(&dyn BackendRow) -> Result<B> { ... }
}
Expand description

Abstraction of rows returned from a query. Most users do not need to deal with this directly and should use the query! macro or Query type.

Required Methods§

source

fn next<'a>(&'a mut self) -> Result<Option<&'a (dyn BackendRow + 'a)>>

source

fn current<'a>(&'a self) -> Option<&'a (dyn BackendRow + 'a)>

Provided Methods§

source

fn mapped<F, B>(self, f: F) -> MapDeref<Self, F>where Self: Sized, F: FnMut(&dyn BackendRow) -> Result<B>,

Trait Implementations§

source§

impl<'a> BackendRows for Box<dyn BackendRows + 'a>

source§

fn next(&mut self) -> Result<Option<&dyn BackendRow>>

source§

fn current(&self) -> Option<&dyn BackendRow>

source§

fn mapped<F, B>(self, f: F) -> MapDeref<Self, F>where Self: Sized, F: FnMut(&dyn BackendRow) -> Result<B>,

Implementations on Foreign Types§

source§

impl<'a> BackendRows for Box<dyn BackendRows + 'a>

source§

fn next(&mut self) -> Result<Option<&dyn BackendRow>>

source§

fn current(&self) -> Option<&dyn BackendRow>

Implementors§