rstubs::arch::io

Trait PortValue

source
pub trait PortValue:
    Sized
    + Copy
    + From<Self::I>
    + Into<Self::I> {
    type I: PortRaw;
}
Expand description

A value that can be written/read to/from IO ports.

It has to be convertible from/into the raw integer specified in PortValue::I.

Required Associated Types§

source

type I: PortRaw

The underlying raw integer type, which can be [u8], [u16], or [u32].

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.

Implementors§