Trait rusqlite::RowIndex

source ·
pub trait RowIndex: Sealed {
    // Required method
    fn idx(&self, stmt: &Statement<'_>) -> Result<usize>;
}
Expand description

A trait implemented by types that can index into columns of a row.

It is only implemented for usize and &str.

Required Methods§

source

fn idx(&self, stmt: &Statement<'_>) -> Result<usize>

Returns the index of the appropriate column, or None if no such column exists.

Implementations on Foreign Types§

source§

impl RowIndex for &str

source§

fn idx(&self, stmt: &Statement<'_>) -> Result<usize>

source§

impl RowIndex for usize

source§

fn idx(&self, stmt: &Statement<'_>) -> Result<usize>

Implementors§