sqlite_bindings_lunatic

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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

Implementors§