Trait former::exposed::EntityToStorage

source ·
pub trait EntityToStorage {
    type Storage;
}
Expand description

Maps a type of entity to its storage type. This trait defines what storage structure is used to hold the interim state of an entity during its formation.

Required Associated Types§

source

type Storage

The storage type used for forming the entity.

Implementations on Foreign Types§

source§

impl<E> EntityToStorage for BinaryHeap<E>

source§

impl<E> EntityToStorage for BTreeSet<E>

source§

impl<E> EntityToStorage for LinkedList<E>

source§

impl<E> EntityToStorage for VecDeque<E>

source§

impl<E> EntityToStorage for Vec<E>

§

type Storage = Vec<E>

source§

impl<K> EntityToStorage for HashSet<K>
where K: Eq + Hash,

§

type Storage = HashSet<K>

source§

impl<K, E> EntityToStorage for BTreeMap<K, E>
where K: Ord,

§

type Storage = BTreeMap<K, E>

source§

impl<K, E> EntityToStorage for HashMap<K, E>
where K: Eq + Hash,

§

type Storage = HashMap<K, E>

Implementors§