Trait BusAddr

Source
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§

Required Methods§

Source

fn bytes(&self) -> impl Iterator<Item = u8>

Provided Methods§

Source

fn len(&self) -> usize

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§

Source§

impl BusAddr for BusAddr8

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits8

Source§

impl BusAddr for BusAddr16BE

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits16BE

Source§

impl BusAddr for BusAddr16LE

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits16LE

Source§

impl BusAddr for BusAddr32BE

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits32BE

Source§

impl BusAddr for BusAddr32LE

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits32LE

Source§

impl BusAddr for BusAddr64BE

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits64BE

Source§

impl BusAddr for BusAddr64LE

Source§

const DATA_WIDTH: DataWidth = DataWidth::Bits64LE