Function rating

Source
fn rating(input: &[&[u8]], cmp: fn(usize, usize) -> bool) -> u32