Struct agnes::store::DataStore[][src]

pub struct DataStore<DTypes: AssocTypes> { /* fields omitted */ }

Data storage underlying a dataframe. Data is retrievable both by index (of the fields vector) and by field name.

DataStores are growable (through AddData and AddDataVec), but existing data is immutable.

Methods

impl<DTypes> DataStore<DTypes> where
    DTypes: AssocTypes,
    DTypes::Storage: CreateStorage
[src]

Generate and return an empty data store

impl<DTypes> DataStore<DTypes> where
    DTypes: DTypeList
[src]

Applies the provided Func to the data in the specified field. This Func must be implemented for all types in DTypes.

Fails if the specified identifier is not found in this DataStore.

Applies the provided Func to the data in the specified field. This Func must be implemented for type T.

Fails if the specified identifier is not found in this DataStore or the incorrect type T is used.

Applies the provided FuncExt to the data in the specified field. This FuncExt must be implemented for all types in DTypes.

Fails if the specified identifier is not found in this DataStore.

Applies the provided FuncPartial to the data in the specified field.

Fails if the specified identifier is not found in this DataStore.

impl<DTypes: AssocTypes> DataStore<DTypes>
[src]

Returns an iterator of FieldIdents contained in this DataStore.

Returns true if this DataStore contains this field.

Get the field information struct for a given field name

Retrieve number of rows for this data store

impl<DTypes> DataStore<DTypes> where
    DTypes: DTypeList
[src]

Add a field to this DataStore with ident and value.

impl<DTypes> DataStore<DTypes> where
    DTypes: DTypeList
[src]

Consume the DataStore, add the data to a new field ident, and return the new DataStore.

Trait Implementations

impl<DTypes: Debug + AssocTypes> Debug for DataStore<DTypes> where
    DTypes::Storage: Debug
[src]

Formats the value using the given formatter. Read more

impl<DTypes> Default for DataStore<DTypes> where
    DTypes: AssocTypes,
    DTypes::Storage: CreateStorage
[src]

Returns the "default value" for a type. Read more

impl<'a, DTypes, T> SelectField<'a, T, DTypes> for DataStore<DTypes> where
    T: 'static + DataType<DTypes>,
    DTypes: 'a + DTypeList
[src]

The return type for the select method.

Returns an object that provides DataIndex access to the data in the field specified by ident. Read more

impl<DTypes, T> AddData<T, DTypes> for DataStore<DTypes> where
    T: 'static + DataType<DTypes> + Default + Clone,
    DTypes: DTypeList,
    DTypes::Storage: TypeSelector<DTypes, T> + DTypeSelector<DTypes, T>, 
[src]

Add a single value to the specified field.

impl<DTypes, T> AddDataVec<T, DTypes> for DataStore<DTypes> where
    T: 'static + DataType<DTypes> + Default + Clone,
    DTypes: DTypeList,
    DTypes::Storage: TypeSelector<DTypes, T> + DTypeSelector<DTypes, T>, 
[src]

Add a vector of data values to the specified field.

impl<DTypes, T> AddDataFromIter<T, DTypes> for DataStore<DTypes> where
    T: 'static + DataType<DTypes> + Default + Clone,
    DTypes: DTypeList,
    DTypes::Storage: TypeSelector<DTypes, T> + DTypeSelector<DTypes, T>, 
[src]

Add data to self with provided field identifier from an iterator over items of type Value<T>. Read more

impl<'a, DTypes, T> AddClonedDataFromIter<'a, T, DTypes> for DataStore<DTypes> where
    T: 'static + DataType<DTypes> + Default + Clone,
    DTypes: DTypeList,
    DTypes::Storage: TypeSelector<DTypes, T> + DTypeSelector<DTypes, T>, 
[src]

Add data to self with provided field identifier from an iterator over items of type Value<&T>, cloning the values. Read more

impl<'a, DTypes, T> WithClonedDataFromIter<'a, T, DTypes> for DataStore<DTypes> where
    T: 'static + DataType<DTypes> + Default,
    DTypes: DTypeList,
    DTypes::Storage: TypeSelector<DTypes, T>,
    DataStore<DTypes>: AddClonedDataFromIter<'a, T, DTypes>, 
[src]

Consume the data structure, clone the data from iter into a new field ident, and return the new data structure. Read more

impl<DTypes> From<DataStore<DTypes>> for DataView<DTypes> where
    DTypes: DTypeList
[src]

Performs the conversion.

impl<DTypes> From<DataStore<DTypes>> for DataFrame<DTypes> where
    DTypes: DTypeList
[src]

Performs the conversion.

Auto Trait Implementations

impl<DTypes> Send for DataStore<DTypes> where
    <DTypes as AssocTypes>::DType: Send,
    <DTypes as AssocTypes>::Storage: Send

impl<DTypes> Sync for DataStore<DTypes> where
    <DTypes as AssocTypes>::DType: Sync,
    <DTypes as AssocTypes>::Storage: Sync