Macro zerocopy::macros::assert_unaligned

source ·
macro_rules! assert_unaligned {
    ($ty:ty) => { ... };
    ($($ty:ty),*) => { ... };
}
Expand description

Uses align_of to confirm that a type or set of types have alignment 1.

Note that align_of<T> requires T: Sized, so this macro doesn’t work for unsized types.