Trait sqlite::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.

Object Safety§

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§