Skip to main content

require_neq

Macro require_neq 

Source
macro_rules! require_neq {
    ( $left:expr, $right:expr, $err:expr ) => { ... };
    ( $left:expr, $right:expr ) => { ... };
}
Expand description

Assert two values are not equal. Early-returns with the supplied error on match (or ProgramError::InvalidArgument in the short form). Symmetric with require_eq!.