pub trait OveralignedField<F>: Sealed<F> {
// Required methods
fn from_field(field: F) -> Self;
fn into_field(self) -> F;
}
Expand description
A trait for fields that can be accessed via OveralignedVolatilePtr
.
Required Methods§
Sourcefn from_field(field: F) -> Self
fn from_field(field: F) -> Self
Converts to this type from the overaligned field.
Sourcefn into_field(self) -> F
fn into_field(self) -> F
Converts this type into the overaligned field.
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.
Implementations on Foreign Types§
Source§impl OveralignedField<Le<u32>> for bool
impl OveralignedField<Le<u32>> for bool
fn from_field(field: le32) -> Self
fn into_field(self) -> le32
Source§impl OveralignedField<Le<u32>> for u8
impl OveralignedField<Le<u32>> for u8
fn from_field(field: le32) -> Self
fn into_field(self) -> le32
Implementors§
impl OveralignedField<Le<u32>> for Id
impl OveralignedField<Le<u32>> for InterruptStatus
Available on crate feature
mmio
only.