macro_rules! assert_align_ge {
    ($x:ty, $($y:ty),+ $(,)?) => { ... };
}
Expand description

Asserts that the types’ alignments are greater than or equal to each other.

Examples

A pointer has greater alignment than u8 and i8:

assert_align_ge!(*const u8, u8, i8);

The following example fails to compile because a u8 has smaller alignment than usize:

assert_align_ge!(u8, usize);