Trait former::exposed::EntryToVal
source · pub trait EntryToVal<Collection> {
type Val;
// Required method
fn entry_to_val(self) -> Self::Val;
}
Expand description
Facilitates the conversion of collection entries to their corresponding value representations.
This trait is utilized to transform an entry of a collection into a value, abstracting the operation of collections like vectors or hash maps. It ensures that even in complex collection structures, entries can be seamlessly managed and manipulated as values.
Required Associated Types§
Required Methods§
sourcefn entry_to_val(self) -> Self::Val
fn entry_to_val(self) -> Self::Val
Converts an entry into a value representation specific to the type of collection. This conversion is crucial for handling operations on entries, especially when they need to be treated or accessed as individual values, such as retrieving the value part from a key-value pair in a hash map.