Lines Matching refs:N
57 pub struct RawIdArray<T: RawDeviceId, const N: usize> {
58 ids: [T::RawType; N],
62 impl<T: RawDeviceId, const N: usize> RawIdArray<T, N> {
71 pub struct IdArray<T: RawDeviceId, U, const N: usize> {
72 raw_ids: RawIdArray<T, N>,
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() argument
89 let mut raw_ids = [const { MaybeUninit::<T::RawType>::uninit() }; N];
90 let mut infos = [const { MaybeUninit::uninit() }; N];
93 while i < N {
135 pub const fn new_without_index(ids: [(T, U); N]) -> Self { in new_without_index()
142 pub const fn raw_ids(&self) -> &RawIdArray<T, N> { in raw_ids() argument
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()
176 impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {