Trait ResultRowAccess

Source
pub trait ResultRowAccess {
    // Required methods
    fn get<I: RowIndex + Display + Clone, T: FromSql>(&mut self, idx: I) -> T;
    fn get_opt<I: RowIndex + Display + Clone, T: FromSql>(
        &mut self,
        idx: I,
    ) -> SqliteResult<T>;
}
Expand description

Access result columns of a row by name or numeric index.

Required Methods§

Source

fn get<I: RowIndex + Display + Clone, T: FromSql>(&mut self, idx: I) -> T

Get T type result value from idxth column of a row.

§Panic

Panics if there is no such column or value.

Source

fn get_opt<I: RowIndex + Display + Clone, T: FromSql>( &mut self, idx: I, ) -> SqliteResult<T>

Try to get T type result value from idxth column of a row.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'res, 'row> ResultRowAccess for ResultRow<'res, 'row>