sqlite

Trait ColumnIndex

source
pub trait ColumnIndex: Copy + Debug {
    // Required method
    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.

Object Safety§

This trait is not object safe.

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§