Macro sa::static_assert[][src]

macro_rules! static_assert {
    ($exp : expr) => { ... };
    ($exp : expr, $msg : literal) => { ... };
}
Expand description

If expression evaluates to true, this macro has no effect.

Otherwise a compile-time error is issued via panic.

Arguments:

  • exp - expression to evaluate. Result of expression must be bool
  • msg - optional string literal to add to the error message.