Trait ReadableWithIndex

Source
pub trait ReadableWithIndex: Sized {
    // Required method
    fn read<T: ColumnIndex>(_: &Statement, _: T) -> Result<Self>;
}
Expand description

A type suitable for reading from a prepared statement given a column index.

Required Methods§

Source

fn read<T: ColumnIndex>(_: &Statement, _: T) -> Result<Self>

Read from a column.

In case of integer indices, the first column has index 0.

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 ReadableWithIndex for f64

Source§

fn read<T: ColumnIndex>(statement: &Statement, index: T) -> Result<Self>

Source§

impl ReadableWithIndex for i64

Source§

fn read<T: ColumnIndex>(statement: &Statement, index: T) -> Result<Self>

Source§

impl ReadableWithIndex for String

Source§

fn read<T: ColumnIndex>(statement: &Statement, index: T) -> Result<Self>

Source§

impl ReadableWithIndex for Vec<u8>

Source§

fn read<T: ColumnIndex>(statement: &Statement, index: T) -> Result<Self>

Source§

impl<T: ReadableWithIndex> ReadableWithIndex for Option<T>

Source§

fn read<U: ColumnIndex>(statement: &Statement, index: U) -> Result<Self>

Implementors§