#[repr(C)]pub struct IdArray<T: RawDeviceId, U, const N: usize> { /* private fields */ }
Expand description
A zero-terminated device id array, followed by context data.
Implementations§
Source§impl<T: RawDeviceId, U, const N: usize> IdArray<T, U, N>
impl<T: RawDeviceId, U, const N: usize> IdArray<T, U, N>
Sourcepub const fn new(ids: [(T, U); N]) -> Self
pub const fn new(ids: [(T, U); N]) -> Self
Creates a new instance of the array.
The contents are derived from the given identifiers and context information.
Sourcepub const fn raw_ids(&self) -> &RawIdArray<T, N>
pub const fn raw_ids(&self) -> &RawIdArray<T, N>
Reference to the contained RawIdArray
.
Trait Implementations§
Auto Trait Implementations§
impl<T, U, const N: usize> Freeze for IdArray<T, U, N>
impl<T, U, const N: usize> RefUnwindSafe for IdArray<T, U, N>
impl<T, U, const N: usize> Send for IdArray<T, U, N>
impl<T, U, const N: usize> Sync for IdArray<T, U, N>
impl<T, U, const N: usize> Unpin for IdArray<T, U, N>
impl<T, U, const N: usize> UnwindSafe for IdArray<T, U, N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more