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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.