Function natord::compare_iter
source · pub fn compare_iter<T, L, R, Skip, Cmp, ToDigit>(
left: L,
right: R,
skip: Skip,
cmp: Cmp,
to_digit: ToDigit
) -> Ordering
Expand description
Compares two iterators of “characters” possibly containing “digits”. The natural ordering can be customized with the following parameters:
skip
returns true if the “character” does not affect the comparison, other than splitting two consecutive digits.cmp
compares two “characters”, assuming that they are not “digits”.to_digit
converts a “character” into a “digit” if possible. The digit of zero is special.