pub fn range_add(ranges: &mut Vec<(u32, u32)>, codepoint: u32) {
    if let Some(&mut (_, ref mut end)) = ranges.last_mut() {
        assert!(*end < codepoint);
        if codepoint == *end + 1 {
            *end = codepoint;
            return;
        }
    }
    ranges.push((codepoint, codepoint));
}
/// Push a codepoint onto a vec of ranges. If the codepoint belongs to the
/// most recently added range, then increase the range. Otherwise, add a new
/// range containing only the codepoint given.
///
/// This panics if the given codepoint is already in the ranges or if a
/// codepoint is given out of order.
Push a codepoint onto a vec of ranges. If the codepoint belongs to the
most recently added range, then increase the range. Otherwise, add a new
range containing only the codepoint given.

This panics if the given codepoint is already in the ranges or if a
codepoint is given out of order.
Push a codepoint onto a vec of ranges . If the codepoint belongs to the most recently added range then increase the range . Otherwise add a new range containing only the codepoint given . This panics if the given codepoint is already in the ranges or if a codepoint is given out of order .
pub fn range_add(ranges: &mut Vec<(u32, u32)>, codepoint: u32) {
    if let Some(&mut (_, ref mut end)) = ranges.last_mut() {
        assert!(*end < codepoint);
        if codepoint == *end + 1 {
            *end = codepoint;
            return;
        }
    }
    ranges.push((codepoint, codepoint));
}
pub fn range_add ( ranges : & mut Vec < ( u32 , u32 ) > , codepoint : u32 ) { if let Some ( & mut ( _ , ref mut end ) ) = ranges . last_mut ( ) { assert ! ( end codepoint ) ; if codepoint == * end + 1 { * end = codepoint ; return ; } } ranges . push ( ( codepoint , codepoint ) ) ; }
Push a codepoint onto a vec of ranges.
Push a codepoint onto a vec of ranges .
ranges
&mut Vec<(u32, u32)>
codepoint
u32
ranges
&mut Vec<(u32, u32)>
codepoint
u32