Lines Matching full:ids
3 //! Generic implementation of device IDs.
49 ids: [T::RawType; N], field
71 pub const fn new(ids: [(T, U); N]) -> Self { in new()
79 raw_ids[i] = unsafe { core::mem::transmute_copy(&ids[i].0) };
90 // SAFETY: this is effectively a move: `infos[i] = ids[i].1`. We make a copy here but
91 // later forget `ids`.
92 infos[i] = MaybeUninit::new(unsafe { core::ptr::read(&ids[i].1) });
96 core::mem::forget(ids);
103 ids: unsafe { core::mem::transmute_copy(&raw_ids) },
137 // This cannot be `self.ids.as_ptr()`, as the return pointer must have correct provenance in as_ptr()
143 &self.raw_ids.ids[index] in id()