human_sort

Function compare_chars_iters

Source
pub fn compare_chars_iters<'a>(
    c1: Chars<'a>,
    c2: Chars<'a>,
) -> Result<Ordering, ()>
Expand description
use std::cmp::Ordering;
use human_sort::compare_chars_iters;
assert_eq!(compare_chars_iters("aaa".chars(), "bbb".chars()), Ok(Ordering::Less));