Struct former_runtime::HashmapFormer [−][src]
pub struct HashmapFormer<K, E, Hashmap, Former, ContainerEnd> where
K: Eq + Hash,
Hashmap: HashmapLike<K, E> + Default,
ContainerEnd: Fn(&mut Former, Option<Hashmap>), { /* fields omitted */ }Expand description
Class for forming hashmap-like fields.
Implementations
impl<K, E, Hashmap, Former, ContainerEnd> HashmapFormer<K, E, Hashmap, Former, ContainerEnd> where
K: Eq + Hash,
Hashmap: HashmapLike<K, E> + Default,
ContainerEnd: Fn(&mut Former, Option<Hashmap>),
impl<K, E, Hashmap, Former, ContainerEnd> HashmapFormer<K, E, Hashmap, Former, ContainerEnd> where
K: Eq + Hash,
Hashmap: HashmapLike<K, E> + Default,
ContainerEnd: Fn(&mut Former, Option<Hashmap>),
Make a new HashmapFormer. It should be called by a former generated for your structure.
Set the whole container instead of setting each element individually.
Return former of your struct moving container there. Should be called after configuring the container.
Trait Implementations
Returns the “default value” for a type. Read more