pub fn add_unique<T: PartialEq>(vec: &mut Vec<T>, val: T) {
    if !vec.contains(&val) {
        vec.push(val);
    }
}
/// adds a value to the vector if the vector does not contains a same value
adds a value to the vector if the vector does not contains a same value
adds a value to the vector if the vector does not contains a same value
pub fn add_unique<T: PartialEq>(vec: &mut Vec<T>, val: T) {
    if !vec.contains(&val) {
        vec.push(val);
    }
}
pub fn add_unique < T : PartialEq > ( vec : & mut Vec < T > , val : T ) { if ! vec . contains ( & val ) { vec . push ( val ) ; } }
adds a value to the vector if the vector does not contains a same value
adds a value to the vector if the vector does not contains a same value
vec
&mut Vec<T>
val
T
vec
&mut Vec<T>
val
T