Trait flatk::MapStorage[][src]

pub trait MapStorage<Out> {
    type Input;
    type Output;
    fn map_storage<F: FnOnce(Self::Input) -> Out>(self, f: F) -> Self::Output;
}
Expand description

Map the storage type into another given a conversion function.

This is useful for changing storage is not just a simple Vec or slice but a combination of independent collections.

Associated Types

Required methods

Implementations on Foreign Types

Implementors

Map the underlying storage type.