Trait agnes::apply::DataIndex [] [src]

pub trait DataIndex<T: PartialOrd> {
    fn get_data(&self, idx: usize) -> Result<MaybeNa<&T>>;
fn len(&self) -> usize; }

Trait implemented by data structures that represent a single column / vector / field of data.

Required Methods

Returns the data (possibly NA) at the specified index, if it exists.

Returns the length of this data field.

Implementors