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

source§

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

Implementors§