Trait Readable

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

A type suitable for reading from a prepared statement.

Required Methods§

Source

fn read(_: &Statement<'_>, _: usize) -> Result<Self>

Read from a column.

The leftmost column has the 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 Readable for f64

Source§

fn read(statement: &Statement<'_>, i: usize) -> Result<Self>

Source§

impl Readable for i64

Source§

fn read(statement: &Statement<'_>, i: usize) -> Result<Self>

Source§

impl Readable for String

Source§

fn read(statement: &Statement<'_>, i: usize) -> Result<Self>

Source§

impl Readable for Vec<u8>

Source§

fn read(statement: &Statement<'_>, i: usize) -> Result<Self>

Implementors§