Function from_fn

Source
pub fn from_fn<K, V>(f: impl FnMut(K) -> V) -> EnumMap<K, V>
where K: Enum<V>,