Macro fregate::static_assert
source · macro_rules! static_assert { ($cond:expr) => { ... }; }
Expand description
Example:
use fregate::static_assert;
#[repr(i32)]
enum Enum {
One = 1,
Two,
Three,
}
static_assert!(Enum::One as i32 == 1);