Skip to main content

LutType

Trait LutType 

Source
pub trait LutType<T> {
    type Table: AsRef<[T]> + ?Sized;
}
Expand description

Represents the storage method for a lookup table.

Required Associated Types§

Source

type Table: AsRef<[T]> + ?Sized

The concrete storage type for any value type T.

Implementations on Foreign Types§

Source§

impl<'a, T, V> LutType<V> for &'a T
where T: LutType<V>, <T as LutType<V>>::Table: 'a,

Source§

type Table = &'a <T as LutType<V>>::Table

Implementors§

Source§

impl<T> LutType<T> for SliceTable

Source§

impl<T> LutType<T> for VecTable

Available on crate feature alloc only.
Source§

type Table = Vec<T>

Source§

impl<T, const N: usize> LutType<T> for ArrayTable<N>