/// Set environment variables in the spawned process. Equivalent to `Command::envs`
Set environment variables in the spawned process. Equivalent to `Command::envs`
Set environment variables in the spawned process . Equivalent to ` Command :: envs `
pub fn envs<I, K, V>(&mut self, vars: I) -> &mut Self
    where
        I: IntoIterator<Item = (K, V)>,
        K: AsRef<OsStr>,
        V: AsRef<OsStr>,
    {
        self.envs.extend(
            vars.into_iter()
                .map(|(k, v)| (k.as_ref().to_owned(), v.as_ref().to_owned())),
        );
        self
    }
pub fn envs < I , K , V > ( & mut self , vars : I ) -> & mut Self where I : IntoIterator < Item = ( K , V ) > , K : AsRef < OsStr > , V : AsRef < OsStr > , { self . envs . extend ( vars . into_iter ( ) . map ( | ( k , v ) | ( k . as_ref ( ) . to_owned ( ) , v . as_ref ( ) . to_owned ( ) ) ) , ) ; self }
Set environment variables in the spawned process.
Set environment variables in the spawned process .
&mut self
vars
I