macro_rules! comptime_assert_size_le {
($type:ty, $limit:expr) => { ... };
}Expand description
Asserts at compile-time that size_of::<T>() <= limit.
Works inside generic functions with const generics.
macro_rules! comptime_assert_size_le {
($type:ty, $limit:expr) => { ... };
}Asserts at compile-time that size_of::<T>() <= limit.
Works inside generic functions with const generics.