Lines Matching refs:usize
48 const DRIVER_DATA_OFFSET: usize;
52 fn index(&self) -> usize; in index() argument
57 pub struct RawIdArray<T: RawDeviceId, const N: usize> {
62 impl<T: RawDeviceId, const N: usize> RawIdArray<T, N> {
64 pub const fn size(&self) -> usize { in size() argument
71 pub struct IdArray<T: RawDeviceId, U, const N: usize> {
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()
104 .cast::<usize>()
147 impl<T: RawDeviceId + RawDeviceIdIndex, U, const N: usize> IdArray<T, U, N> {
170 fn id(&self, index: usize) -> &T::RawType; in id()
173 fn info(&self, index: usize) -> &U; in info()
176 impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N> {
183 fn id(&self, index: usize) -> &T::RawType { in id()
187 fn info(&self, index: usize) -> &U { in info()