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.