clippy_utils

Function both

source
pub fn both<X>(
    l: Option<&X>,
    r: Option<&X>,
    eq_fn: impl FnMut(&X, &X) -> bool,
) -> bool
Expand description

Checks if the two Options are both None or some equal values as per eq_fn.