Skip to main content

ColumnTyped

Trait ColumnTyped 

Source
pub trait ColumnTyped<T>: Column {
    // Required methods
    fn get(&self, index: usize) -> Option<T>;
    fn append(&mut self, value: T);
}
Expand description

Helper trait for column types that can be downcasted

Required Methods§

Source

fn get(&self, index: usize) -> Option<T>

Get value at index

Source

fn append(&mut self, value: T)

Append a value to the column

Implementors§

Source§

impl<T: FixedSize + ToType + Clone + Send + Sync + 'static> ColumnTyped<T> for ColumnVector<T>