Skip to main content

ReadReg

Trait ReadReg 

Source
pub trait ReadReg<Layout> {
    // Required method
    fn read(&self) -> Layout;
}
Expand description

A trait representing a readable register.

Required Methods§

Source

fn read(&self) -> Layout

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Layout, R: ReadReg<Layout>> ReadReg<Layout> for &R

Source§

fn read(&self) -> Layout

Implementors§

Source§

impl<Layout, Access, Io> ReadReg<Layout> for Register<Layout, Access, Io>
where Layout: LayoutOver<<Io as IoHandle>::Base>, Access: Readable, Io: ReadHandle,