macro_rules! static_assert_size_and_align {
($ty:ty, $max_size:expr, $expected_align:expr $(,)?) => { ... };
}Expand description
Compile-time assertion that a type’s size is <= max_size and alignment == expected_align.
macro_rules! static_assert_size_and_align {
($ty:ty, $max_size:expr, $expected_align:expr $(,)?) => { ... };
}Compile-time assertion that a type’s size is <= max_size and alignment == expected_align.