pub fn env<K, V>(&mut self, key: K, val: Option<V>) -> &mut Self
    where
        K: AsRef<OsStr>,
        V: AsRef<OsStr>,
    {
        let converted_val = val.map(|s| s.as_ref().to_owned());

        self.env_additions
            .insert(key.as_ref().to_owned(), converted_val);
        self
    }
/// Passes an extra environment variable to x's target command.
Passes an extra environment variable to x's target command.
Passes an extra environment variable to x ' s target command .
pub fn env<K, V>(&mut self, key: K, val: Option<V>) -> &mut Self
    where
        K: AsRef<OsStr>,
        V: AsRef<OsStr>,
    {
        let converted_val = val.map(|s| s.as_ref().to_owned());
        self.env_additions
            .insert(key.as_ref().to_owned(), converted_val);
        self
    }
pub fn env < K , V > ( & mut self , key : K , val : Option < V > ) -> & mut Self where K : AsRef < OsStr > , V : AsRef < OsStr > , { let converted_val = val . map ( | s | s . as_ref ( ) . to_owned ( ) ) ; self . env_additions . insert ( key . as_ref ( ) . to_owned ( ) , converted_val ) ; self }
Passes an extra environment variable to x's target command.
Passes an extra environment variable to x ' s target command .
&mut self
key
K
val
Option<V>