Skip to main content

RegisterValue

Trait RegisterValue 

Source
pub trait RegisterValue:
    Sized
    + FromBytes
    + IntoBytes
    + FromZeros
    + Immutable { }
Expand description

Trait for types that can represent a register’s value.

It is implemented by the Value structs generated by the spmi_register! macro, bounding it by Sized, FromBytes, IntoBytes, FromZeros, and Immutable for safe memory casting.

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§