pub trait BusAddr {
const DATA_WIDTH: DataWidth;
// Required method
fn bytes(&self) -> impl Iterator<Item = u8>;
// Provided method
fn len(&self) -> usize { ... }
}
Expand description
The BusAddr
trait is implemented for each BusAddr struct.
It provides information about the data width and a way
to access the underlying byte representation.
Required Associated Constants§
const DATA_WIDTH: DataWidth
Required Methods§
Provided 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.