sa

Simple Rust macro to assert constant expressions


Keywords
assert, testing, static_assert, static, compile-time, rust, static-assertions
License
BSL-1.0

Documentation

static-assert

Crates.io Documentation

Simple static_assert macro for compile time assertions.

Uses const_panic within const variable to produce compile error hence only usable in const context

Requirements

  • Rust 1.57