pub trait Alignment: Sealed {
// Required method
#[doc(hidden)] fn read<T, I, R>(ptr: Ptr<'_, T, I>) -> T
where T: Copy + Read<I::Aliasing, R>,
I: Invariants<Alignment = Self, Validity = Valid>,
I::Aliasing: Reference;
}Expand description
The alignment invariant of a [Ptr][super::Ptr].
Required Methods§
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.