pub fn both<X>( l: &Option<X>, r: &Option<X>, eq_fn: impl FnMut(&X, &X) -> bool, ) -> bool
Checks if the two Options are both None or some equal values as per eq_fn.
Option
None
eq_fn