Skip to main content

DrizzleRowByIndex

Trait DrizzleRowByIndex 

Source
pub trait DrizzleRowByIndex {
    // Required method
    fn get_column<T: FromPostgresValue>(
        &self,
        idx: usize,
    ) -> Result<T, DrizzleError>;
}
Expand description

Row capability for index-based extraction.

Required Methods§

Source

fn get_column<T: FromPostgresValue>( &self, idx: usize, ) -> Result<T, DrizzleError>

Get a column value by index

§Errors

Returns DrizzleError if the column is out of bounds, the value is NULL for a non-nullable target, or the stored value cannot be converted into T.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§