Skip to main content

Register

Trait Register 

Source
pub trait Register: Sized {
    type Storage: Into<Self> + From<Self>;

    const OFFSET: usize;
}
Expand description

Trait implemented by all registers.

Required Associated Constants§

Source

const OFFSET: usize

Start offset of the register.

The interpretation of this offset depends on the type of the register.

Required Associated Types§

Source

type Storage: Into<Self> + From<Self>

Backing primitive type of the register.

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§