The regex library also uses (usize, usize) for ranges. The type alias is just to make it clearer what the tuple means.