pub trait BindableWithIndex {
    // Required method
    fn bind<T: ParameterIndex>(self, _: &mut Statement<'_>, _: T) -> Result<()>;
}
Expand description

A type suitable for binding to a prepared statement given a parameter index.

Required Methods§

source

fn bind<T: ParameterIndex>(self, _: &mut Statement<'_>, _: T) -> Result<()>

Bind to a parameter.

In case of integer indices, the first parameter has index 1.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BindableWithIndex for &str

source§

fn bind<T: ParameterIndex>( self, statement: &mut Statement<'_>, index: T ) -> Result<()>

source§

impl BindableWithIndex for &[u8]

source§

fn bind<T: ParameterIndex>( self, statement: &mut Statement<'_>, index: T ) -> Result<()>

source§

impl BindableWithIndex for f64

source§

fn bind<T: ParameterIndex>( self, statement: &mut Statement<'_>, index: T ) -> Result<()>

source§

impl BindableWithIndex for i64

source§

fn bind<T: ParameterIndex>( self, statement: &mut Statement<'_>, index: T ) -> Result<()>

source§

impl BindableWithIndex for ()

source§

fn bind<T: ParameterIndex>( self, statement: &mut Statement<'_>, index: T ) -> Result<()>

source§

impl<T> BindableWithIndex for &Option<T>

source§

fn bind<U: ParameterIndex>( self, statement: &mut Statement<'_>, index: U ) -> Result<()>

source§

impl<T> BindableWithIndex for Option<T>

source§

fn bind<U: ParameterIndex>( self, statement: &mut Statement<'_>, index: U ) -> Result<()>

Implementors§