Lines Matching refs:U
71 pub struct IdArray<T: RawDeviceId, U, const N: usize> {
73 id_infos: [U; N],
76 impl<T: RawDeviceId, U, const N: usize> IdArray<T, U, N> {
88 const unsafe fn build(ids: [(T, U); N], data_offset: Option<usize>) -> Self { in build()
135 pub const fn new_without_index(ids: [(T, U); N]) -> Self { in new_without_index()
147 impl<T: RawDeviceId + RawDeviceIdIndex, U, const N: usize> IdArray<T, U, N> {
151 pub const fn new(ids: [(T, U); N]) -> Self { in new()
165 pub trait IdTable<T: RawDeviceId, U> {
173 fn info(&self, index: usize) -> &U; in info() argument
176 impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {
187 fn info(&self, index: usize) -> &U { in info() argument