kernel::device_id

Trait IdTable

Source
pub trait IdTable<T: RawDeviceId, U> {
    // Required method
    fn as_ptr(&self) -> *const T::RawType;
}
Expand description

A device id table.

This trait is only implemented by IdArray.

The purpose of this trait is to allow &'static dyn IdArray<T, U> to be in context when N in IdArray doesn’t matter.

Required Methods§

Source

fn as_ptr(&self) -> *const T::RawType

Obtain the pointer to the ID table.

Implementors§

Source§

impl<T: RawDeviceId, U, const N: usize> IdTable<T, U> for IdArray<T, U, N>