pub trait GenericIndex<V: Clone, const N: usize> {
    const VALUES: [V; N];
    const LENGTH: usize = N;

    // Required methods
    fn from_usize(n: usize) -> Self;
    fn into_usize(self) -> usize;
}

Required Associated Constants§

Provided Associated Constants§

source

const LENGTH: usize = N

Required Methods§

source

fn from_usize(n: usize) -> Self

source

fn into_usize(self) -> usize

Object Safety§

This trait is not object safe.

Implementors§

source§

impl GenericIndex<Good, 23> for GoodIndex

source§

const VALUES: [Good; 23] = _