Skip to main content

ColumnSelection

Trait ColumnSelection 

Source
pub trait ColumnSelection {
    type View;
    type ColumnView;
    type ColumnOwned;

    // Required methods
    fn c<S>(&self, selection: S) -> Self::View
       where S: FieldSelector;
    fn get(&self, field: &str) -> Option<Self::ColumnOwned>;
    fn col_ix(&self, idx: usize) -> Option<Self::ColumnView>;
    fn col_vec(&self) -> Vec<Self::ColumnView>;
    fn get_cols(&self) -> Vec<Arc<Field>>;

    // Provided method
    fn col(&self, name: &str) -> Self::View { ... }
}
Expand description

Trait for types that support field/column selection

Associated types determine what each access pattern returns: