Trait agnes::data_types::Map [−][src]
pub trait Map<DTypes, F, FOut> where
DTypes: AssocTypes, { fn map<L>(&self, locator: &L, f: F) -> Result<FOut>
where
L: FieldLocator<DTypes>; }
Trait providing a method for applying a Func to data in data storage
structure. Implemented automatically by data_types
macros where a Func
is implemented
for all data types of a data storage structure.
Required Methods
fn map<L>(&self, locator: &L, f: F) -> Result<FOut> where
L: FieldLocator<DTypes>,
L: FieldLocator<DTypes>,
Apply a Func to the data specified by a FieldLocator.
Fails if the field is not able to be located in this data structure.
Implementors
impl<F, FOut> Map<Types, F, FOut> for agnes::data_types::csv::Storage where
F: FuncAllTypes<FOut>,impl<F, FOut> Map<Types, F, FOut> for agnes::data_types::standard::Storage where
F: FuncAllTypes<FOut>,