Trait former::exposed::Storage

source ·
pub trait Storage: Default {
    type Preformed;
}
Expand description

Defines the storage interface for entities being constructed using a forming pattern.

This trait is required for any storage type that temporarily holds data during the construction of an entity. It mandates the implementation of Default, ensuring that storage can be initialized to a default state at the start of the forming process.

Required Associated Types§

source

type Preformed

The type of the entity as it should appear once preformed. It could, but does not have to be the same type as Formed.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<E> Storage for BinaryHeap<E>
where E: Ord,

source§

impl<E> Storage for BTreeSet<E>

source§

impl<E> Storage for LinkedList<E>

source§

impl<E> Storage for VecDeque<E>

source§

impl<E> Storage for Vec<E>

§

type Preformed = Vec<E>

source§

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

source§

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

§

type Preformed = BTreeMap<K, E>

source§

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

§

type Preformed = HashMap<K, E>

Implementors§