Lines Matching refs:T
48 pub struct RawIdArray<T: RawDeviceId, const N: usize> {
49 ids: [T::RawType; N],
50 sentinel: MaybeUninit<T::RawType>,
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>,
67 impl<T: RawDeviceId, U, const N: usize> IdArray<T, U, N> {
71 pub const fn new(ids: [(T, U); N]) -> Self { in new() argument
72 let mut raw_ids = [const { MaybeUninit::<T::RawType>::uninit() }; N];
85 .byte_offset(T::DRIVER_DATA_OFFSET as _)
113 pub const fn raw_ids(&self) -> &RawIdArray<T, N> { in raw_ids() argument
124 pub trait IdTable<T: RawDeviceId, U> {
126 fn as_ptr(&self) -> *const T::RawType; in as_ptr()
129 fn id(&self, index: usize) -> &T::RawType; in id()
135 impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {
136 fn as_ptr(&self) -> *const T::RawType { in as_ptr()
142 fn id(&self, index: usize) -> &T::RawType { in id()