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
fn get_data(&self, idx: usize) -> Result<MaybeNa<&T>>
Returns the data (possibly NA) at the specified index, if it exists.
fn len(&self) -> usize
Returns the length of this data field.
Implementors
impl DataIndex<u64> for MaskedData<u64>
impl DataIndex<i64> for MaskedData<i64>
impl DataIndex<String> for MaskedData<String>
impl DataIndex<bool> for MaskedData<bool>
impl DataIndex<f64> for MaskedData<f64>