pub fn vars() -> Option<Vec<(String, String)>> {
	vars_os().map(|x| {
		x.into_iter()
			.map(|(a, b)| (a.into_string().unwrap(), b.into_string().unwrap()))
			.collect()
	})
}
/// Returns a vector of (variable, value) pairs of strings, for all the
/// environment variables of the current process.
///
/// # Errors
///
/// This will return `None` if `get_env` can't acquire them. Please file an issue.
///
/// # Panics
///
/// Will panic if any key or value in the environment is not valid unicode. If
/// this is not desired, consider using the [`vars_os`] function.
///
/// [`vars_os`]: fn.vars_os.html
///
/// # Examples
///
/// ```
/// use palaver::env;
///
/// // Prints the environment variables
/// for (key, value) in env::vars().expect("Couldn't retrieve env vars") {
///     println!("{}: {}", key, value);
/// }
/// ```
Returns a vector of (variable, value) pairs of strings, for all the
environment variables of the current process.
Returns a vector of ( variable value ) pairs of strings for all the environment variables of the current process .
pub fn vars() -> Option<Vec<(String, String)>> {
	vars_os().map(|x| {
		x.into_iter()
			.map(|(a, b)| (a.into_string().unwrap(), b.into_string().unwrap()))
			.collect()
	})
}
pub fn vars ( ) -> Option < Vec < ( String , String ) > > { vars_os ( ) . map ( | x | { x . into_iter ( ) . map ( | ( a , b ) | ( a . into_string ( ) . unwrap ( ) , b . into_string ( ) . unwrap ( ) ) ) . collect ( ) } ) }
Returns a vector of (variable, value) pairs of strings, for all the
environment variables of the current process.
Returns a vector of ( variable value ) pairs of strings for all the environment variables of the current process .
errors
This will return `None` if `get_env` can't acquire them. Please file an issue.
This will return ` None ` if ` get_env ` can ' t acquire them . Please file an issue .
panics
Will panic if any key or value in the environment is not valid unicode. If
this is not desired, consider using the [`vars_os`] function.

[`vars_os`]: fn.vars_os.html
Will panic if any key or value in the environment is not valid unicode . If this is not desired consider using the [ ` vars_os ` ] function . [ ` vars_os ` ] : fn . vars_os . html
examples
```
use palaver::env.

Prints the environment variables
for (key, value) in env::vars().expect("Couldn't retrieve env vars") {
println!("{}: {}", key, value);
}
```
` ` ` use palaver :: env . Prints the environment variables for ( key value ) in env :: vars () . expect ( " Couldn ' t retrieve env vars " ) { println! ( " {} : {} " key value ) ; } ` ` `