Macro mirai_annotations::debug_checked_precondition_eq [−][src]
macro_rules! debug_checked_precondition_eq { ($left : expr, $right : expr) => { ... }; ($left : expr, $right : expr, $message : literal) => { ... }; ($left : expr, $right : expr, $($arg : tt) *) => { ... }; }
Expand description
Equivalent to the standard debug_assert_eq! when used with an unmodified Rust compiler. When compiled with MIRAI, this causes MIRAI to assume the condition at the point where it appears in a function, but to also add it a precondition that must be verified by the caller of the function.