static-assert
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
Simple Rust macro to assert constant expressions
Repository Cargo Rust Documentation Download