1
 2
 3
 4
 5
 6
 7
 8
 9
10
use backend::Backend;

/// The row trait which is used for [`FromSqlRow`][]. Apps should not need to
/// concern themselves with this trait.
///
/// [`FromSqlRow`]: ../types/trait.FromSqlRow.html
pub trait Row<DB: Backend> {
    fn take(&mut self) -> Option<&DB::RawValue>;
    fn next_is_null(&self, count: usize) -> bool;
}