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

A type suitable for indexing parameters in a prepared statement.

Required Methods§

source

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

Identify the ordinal position.

The first parameter has index 1.

Implementations on Foreign Types§

source§

impl ParameterIndex for &str

source§

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

source§

impl ParameterIndex for usize

Implementors§