Lines Matching refs:N
48 pub struct RawIdArray<T: RawDeviceId, const N: usize> {
49 ids: [T::RawType; N],
53 impl<T: RawDeviceId, const N: usize> RawIdArray<T, N> {
62 pub struct IdArray<T: RawDeviceId, U, const N: usize> {
63 raw_ids: RawIdArray<T, N>,
64 id_infos: [U; N],
67 impl<T: RawDeviceId, U, const N: usize> IdArray<T, U, N> {
71 pub const fn new(ids: [(T, U); N]) -> Self { in new()
72 let mut raw_ids = [const { MaybeUninit::<T::RawType>::uninit() }; N];
73 let mut infos = [const { MaybeUninit::uninit() }; N];
76 while i < N {
113 pub const fn raw_ids(&self) -> &RawIdArray<T, N> { in raw_ids() argument
135 impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {