pub trait RowIndex: Sealed {
    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

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

Implementations on Foreign Types

Implementors