fn strip_tag(tag: &[u8]) -> impl Iterator<Item = &u8> {
        let has_colon = tag.iter().any(|&b| b == b':');
        tag.iter()
            .skip_while(move |&&b| has_colon && b != b':')
            .skip(if has_colon { 1 } else { 0 }) // the ':' itself
    }
/// Strip the namespace from a tag.
Strip the namespace from a tag.
Strip the namespace from a tag .
fn strip_tag(tag: &[u8]) -> impl Iterator<Item = &u8> {
        let has_colon = tag.iter().any(|&b| b == b':');
        tag.iter()
            .skip_while(move |&&b| has_colon && b != b':')
            .skip(if has_colon { 1 } else { 0 }) // the ':' itself
    }
fn strip_tag ( tag : & [ u8 ] ) -> impl Iterator < Item = & u8 > { let has_colon = tag . iter ( ) . any ( | & b | b == b':' ) ; tag . iter ( ) . skip_while ( move | & & b | has_colon && b != b':' ) . skip ( if has_colon { 1 } else { 0 } ) // the ':' itself }
Strip the namespace from a tag.
Strip the namespace from a tag .
tag
&[u8]
tag
&[u8]