pub trait IdTable<T: RawDeviceId, U> {
// Required methods
fn as_ptr(&self) -> *const T::RawType;
fn id(&self, index: usize) -> &T::RawType;
fn info(&self, index: usize) -> &U;
}
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.