Skip to main content

DinocoGenericRow

Trait DinocoGenericRow 

Source
pub trait DinocoGenericRow {
    // Required method
    fn get_value(&self, idx: usize) -> Result<DinocoValue, DinocoError>;

    // Provided methods
    fn get_optional<T>(&self, idx: usize) -> Result<Option<T>, DinocoError>
       where T: TryFrom<DinocoValue, Error = DinocoError> { ... }
    fn get<T>(&self, idx: usize) -> Result<T, DinocoError>
       where T: TryFrom<DinocoValue, Error = DinocoError> { ... }
}

Required Methods§

Provided Methods§

Source

fn get_optional<T>(&self, idx: usize) -> Result<Option<T>, DinocoError>
where T: TryFrom<DinocoValue, Error = DinocoError>,

Source

fn get<T>(&self, idx: usize) -> Result<T, DinocoError>
where T: TryFrom<DinocoValue, Error = DinocoError>,

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 DinocoGenericRow for Row

Source§

impl DinocoGenericRow for Row

Source§

impl<'stmt> DinocoGenericRow for Row<'stmt>

Implementors§