pub fn labels<T1: ToString, T2: ToString>(label_pairs: &[(T1, T2)]) -> Labels {
    let mut labels = Labels::new();
    for label_pair in label_pairs {
        if labels
            .insert(label_pair.0.to_string(), label_pair.1.to_string())
            .is_some()
        {
            panic!("Duplicate label: {}", label_pair.0.to_string(),);
        }
    }
    labels
}
/// Constructs a `Labels` out of a slice of label-value tuples.
Constructs a `Labels` out of a slice of label-value tuples.
Constructs a ` Labels ` out of a slice of label - value tuples .
pub fn labels<T1: ToString, T2: ToString>(label_pairs: &[(T1, T2)]) -> Labels {
    let mut labels = Labels::new();
    for label_pair in label_pairs {
        if labels
            .insert(label_pair.0.to_string(), label_pair.1.to_string())
            .is_some()
        {
            panic!("Duplicate label: {}", label_pair.0.to_string(),);
        }
    }
    labels
}
pub fn labels < T1 : ToString , T2 : ToString > ( label_pairs : & [ ( T1 , T2 ) ] ) -> Labels { let mut labels = Labels :: new ( ) ; for label_pair in label_pairs { if labels . insert ( label_pair . 0 . to_string ( ) , label_pair . 1 . to_string ( ) ) . is_some ( ) { panic ! ( " " label_pair 0 to_string ( ) ) ; } } labels }
Constructs a `Labels` out of a slice of label-value tuples.
Constructs a ` Labels ` out of a slice of label - value tuples .
label_pairs
&[(T1, T2)]
label_pairs
&[(T1, T2)]