Function numbers_within

Source
pub fn numbers_within<N>(maxdiff: N) -> impl Fn(N, N) -> bool
where N: CheckedSub + Num + Ord,
Expand description

Get a function that reports whether two numbers are within maxdiff of each other (either direction).