Trait agnes::data_types::TypeSelector[][src]

pub trait TypeSelector<DTypes, Target> where
    DTypes: DTypeList,
    Target: DataType<DTypes>, 
{ fn select_type<'a>(&'a self) -> &'a TypeData<DTypes, Target>;
fn select_type_mut<'a>(&'a mut self) -> &'a mut TypeData<DTypes, Target>; }

A trait for selecting all fields of Target type from storage. Typically, you would use the select_type and select_type_mut inherent methods on StorageCons instead.

Required Methods

Returns a reference to the TypeData structure for type Target.

Returns a mutable reference to the TypeData structure for type Target.

Implementors