Compile-time assertions
Sometimes, you want to add checks to ensure that your constants are protected from typos or other logic errors. Here is how to implement compile-time assertions in Rust.
Sometimes, you want to add checks to ensure that your constants are protected from typos or other logic errors. Here is how to implement compile-time assertions in Rust.