Function veloren_world::util::map_array::index_from_enum
source · pub fn index_from_enum<E: Clone + PartialEq, I: GenericIndex<E, N>, const N: usize>(
val: E
) -> Result<I, NotFound>
pub fn index_from_enum<E: Clone + PartialEq, I: GenericIndex<E, N>, const N: usize>(
val: E
) -> Result<I, NotFound>