Trait OveralignedField

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

Source

fn from_field(field: F) -> Self

Converts to this type from the overaligned field.

Source

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

Source§

fn from_field(field: le32) -> Self

Source§

fn into_field(self) -> le32

Source§

impl OveralignedField<Le<u32>> for u8

Source§

fn from_field(field: le32) -> Self

Source§

fn into_field(self) -> le32

Implementors§