Trait former::exposed::FormerDefinitionTypes

source ·
pub trait FormerDefinitionTypes: Sized {
    type Storage: Default;
    type Formed;
    type Context;
}
Expand description

Defines the fundamental components involved in the formation of an entity. This trait specifies the types of storage, the formed entity, and the context used during the formation process.

Required Associated Types§

source

type Storage: Default

The type of storage used to maintain the state during formation.

source

type Formed

The type of the entity once fully formed.

source

type Context

The contextual information used during formation, if any.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<E, Context, Formed> FormerDefinitionTypes for BTreeSetDefinitionTypes<E, Context, Formed>

§

type Storage = BTreeSet<E>

§

type Context = Context

§

type Formed = Formed

source§

impl<E, Context, Formed> FormerDefinitionTypes for BinaryHeapDefinitionTypes<E, Context, Formed>
where E: Ord,

§

type Storage = BinaryHeap<E>

§

type Context = Context

§

type Formed = Formed

source§

impl<E, Context, Formed> FormerDefinitionTypes for LinkedListDefinitionTypes<E, Context, Formed>

§

type Storage = LinkedList<E>

§

type Context = Context

§

type Formed = Formed

source§

impl<E, Context, Formed> FormerDefinitionTypes for VecDequeDefinitionTypes<E, Context, Formed>

§

type Storage = VecDeque<E>

§

type Context = Context

§

type Formed = Formed

source§

impl<E, Context, Formed> FormerDefinitionTypes for VectorDefinitionTypes<E, Context, Formed>

§

type Storage = Vec<E>

§

type Context = Context

§

type Formed = Formed

source§

impl<K, Context, Formed> FormerDefinitionTypes for HashSetDefinitionTypes<K, Context, Formed>
where K: Eq + Hash,

§

type Storage = HashSet<K>

§

type Formed = Formed

§

type Context = Context

source§

impl<K, E, Context, Formed> FormerDefinitionTypes for BTreeMapDefinitionTypes<K, E, Context, Formed>
where K: Ord,

§

type Storage = BTreeMap<K, E>

§

type Formed = Formed

§

type Context = Context

source§

impl<K, E, Context, Formed> FormerDefinitionTypes for HashMapDefinitionTypes<K, E, Context, Formed>
where K: Eq + Hash,

§

type Storage = HashMap<K, E>

§

type Formed = Formed

§

type Context = Context