pub fn append<S>(&mut self, key: &S, value: Value)
    where
        S: ?Sized + Hash + Eq + ToString,
        Key: Borrow<S>,
    {
        if !self.env.contains_key(key) {
            self.env.insert(key.to_string(), "".to_string());
        }
        let old_value = self.env[key].clone();
        if !old_value.contains(&value) {
            self.env.insert(key.to_string(), old_value + &value);
        }
    }
/** If key doesn't exist then an empty string entry will be created. */
If key doesn't exist then an empty string entry will be created.
If key doesn ' t exist then an empty string entry will be created .
pub fn append<S>(&mut self, key: &S, value: Value)
    where
        S: ?Sized + Hash + Eq + ToString,
        Key: Borrow<S>,
    {
        if !self.env.contains_key(key) {
            self.env.insert(key.to_string(), "".to_string());
        }
        let old_value = self.env[key].clone();
        if !old_value.contains(&value) {
            self.env.insert(key.to_string(), old_value + &value);
        }
    }
pub fn append < S > ( & mut self , key : & S , value : Value ) where S : ? Sized + Hash + Eq + ToString , Key : Borrow < S > , { if ! self . env . contains_key ( key ) { self . env . insert ( key . to_string ( ) , " " . to_string ( ) ) ; } let old_value = self . env [ key ] . clone ( ) ; if ! old_value . contains ( & value ) { self . env . insert ( key . to_string ( ) , old_value + & value ) ; } }
If key doesn't exist then an empty string entry will be created.
If key doesn ' t exist then an empty string entry will be created .
&mut self
key
&S
value
Value