Trait agnes::access::DataIndex [−][src]
pub trait DataIndex<DTypes>: Debug where
DTypes: DTypeList, { type DType: DataType<DTypes>; fn get_datum(&self, idx: usize) -> Result<Value<&Self::DType>>; fn len(&self) -> usize; fn is_empty(&self) -> bool { ... } fn iter(&self) -> DataIterator<DTypes, Self::DType>
where
Self: Sized, { ... } }
Trait that provides access to values in a data field.
Associated Types
Required Methods
fn get_datum(&self, idx: usize) -> Result<Value<&Self::DType>>
Returns the data (possibly NA) at the specified index, if it exists.
fn len(&self) -> usize
Returns the length of this data field.
Provided Methods
fn is_empty(&self) -> bool
Returns whether or not this field is empty.
ⓘImportant traits for DataIterator<'a, DTypes, T>
fn iter(&self) -> DataIterator<DTypes, Self::DType> where
Self: Sized,
Self: Sized,
Returns an iterator over the values in this field.
Implementors
impl<DTypes, T> DataIndex<DTypes> for FieldData<DTypes, T> where
DTypes: DTypeList,
T: DataType<DTypes>, type DType = T;impl<'a, 'b, DI, R, DTypes> DataIndex<DTypes> for Reindexed<'a, 'b, R, DI> where
DTypes: DTypeList,
R: 'a + Reindexer<DTypes>,
DI: 'b + DataIndex<DTypes>, type DType = DI::DType;impl<'a, DTypes, T> DataIndex<DTypes> for Framed<'a, DTypes, T> where
T: DataType<DTypes>,
DTypes: DTypeList,
DTypes::Storage: MaxLen<DTypes>, type DType = T;impl<'a, DTypes, T> DataIndex<DTypes> for OwnedOrRef<'a, DTypes, T> where
DTypes: DTypeList,
T: 'a + DataType<DTypes>, type DType = T;impl<DTypes, U, T> DataIndex<DTypes> for Selection<DTypes, U, T> where
DTypes: DTypeList,
T: DataType<DTypes>,
U: DataIndex<DTypes, DType = T>, type DType = T;