Function clippy_utils::hir_utils::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 Option
s are both None
or some equal values as per
eq_fn
.