Trait rusqlite::RowIndex[][src]

pub trait RowIndex: Sealed {
    fn idx(&self, stmt: &Statement<'_>) -> Result<usize>;
}

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

It is only implemented for usize and &str.

Required methods

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

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

Loading content...

Implementations on Foreign Types

impl RowIndex for usize[src]

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

impl RowIndex for &str[src]

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

Loading content...

Implementors

Loading content...