[−][src]Macro chek::debug_not_equal
Same as chek::not_equal!
in debug builds or release builds where the -C debug-assertions
was provided to the compiler. For all other builds,
vanishes without a trace.
Optionally may take an additional message to display on failure, which is formatted using standard format syntax.
Example
// These are compiled to nothing if debug_assertions are off! chek::debug_not_equal!(4, 1); chek::debug_not_equal!( "bar", "foo", ); chek::debug_not_equal!(4, 5, "With a message"); chek::debug_not_equal!(4, 2, "With a formatted message: {}", "oh no");