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

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