sqlite

Trait ParameterIndex

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

Object Safety§

This trait is not object safe.

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§