pub trait ColumnIndex: Copy + Debug {
    fn index(self, statement: &Statement) -> Result<usize>;
}
Expand description

A type suitable for indexing columns in a prepared statement.

Required Methods§

source

fn index(self, statement: &Statement) -> Result<usize>

Identify the ordinal position.

The first column has index 0.

Implementations on Foreign Types§

source§

impl ColumnIndex for &str

source§

fn index(self, statement: &Statement) -> Result<usize>

source§

impl ColumnIndex for usize

source§

fn index(self, statement: &Statement) -> Result<usize>

Implementors§