Skip to main content

Bindable

Trait Bindable 

Source
pub trait Bindable {
    // Required method
    fn bind(self, _: &Statement) -> Result<()>;
}
Expand description

A type suitable for binding to a prepared statement.

Required Methods§

Source

fn bind(self, _: &Statement) -> Result<()>

Bind to a parameter.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, U> Bindable for &[(T, U)]

Source§

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

Source§

impl<T, U> Bindable for (T, U)

Source§

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

Source§

impl<T> Bindable for &[T]

Source§

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

Implementors§