[go: up one dir, main page]

divan 0.1.19

Statistically-comfy benchmarking library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// `assert!` that's only checked in debug builds and is otherwise an
/// optimization hint in release builds.
macro_rules! assert_unchecked {
    ($condition:expr $(, $message:expr)* $(,)?) => {
        if cfg!(any(debug_assertions, miri)) {
            assert!($condition $(, $message)*);
        } else {
            $crate::util::assert_unchecked($condition);
        }
    }
}