pub trait PortRaw: Sized + Copy {
// Required methods
unsafe fn read(addr: u16) -> Self;
unsafe fn write(self, addr: u16);
}
Expand description
A raw value that can be written/read to/from IO ports.
It is implemented for [u8], [u16], and [u32].
Required Methods§
Object Safety§
This trait is not object safe.