pub fn index_from_enum<E: Clone + PartialEq, I: GenericIndex<E, N>, const N: usize>( val: E, ) -> Result<I, NotFound>