Expand description
Get the alignment of a type as a aligned_bytes::Alignment
Safety
This trait is unsafe because we will be relying on the information from the trait to do casting safely. The alignment needs to be correct, or at least conservative.
It would be nice to be able to use std::mem::align_of<T>()
, but we need it
in trait bounds, so that’ll have to wait until const generics: