Skip to main content

DataSource

Trait DataSource 

Source
pub trait DataSource {
    // Required methods
    fn column_definitions(&self) -> &[ColumnDefiniton];
    fn rows(&self) -> usize;
    fn get_row(&self, row: usize) -> &dyn DataRow;
}

Required Methods§

Source

fn column_definitions(&self) -> &[ColumnDefiniton]

Definitions of the columns

Source

fn rows(&self) -> usize

Number of rows

Source

fn get_row(&self, row: usize) -> &dyn DataRow

Returns the corresponding row data This will panic if the row doesn’t exist

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§