Skip to main content

is_equal_to

Macro is_equal_to 

Source
macro_rules! is_equal_to {
    ($val:ident) => { ... };
    ($val:expr_2021) => { ... };
}
Expand description

Creates a closure that compares each input with a supplied value for equality.

The comparison target remains inside the closure body and is evaluated on every call.