Skip to main content

capture_env_from

Function capture_env_from 

Source
pub fn capture_env_from<I, K, V>(iter: I) -> Vec<LaunchEnv>
where I: IntoIterator<Item = (K, V)>, K: Into<String>, V: Into<String>,
Expand description

Filter an iterator of (String, String) env entries through the denylist. Use capture_caller_env or capture_env_from_os for OS-sourced env; this lower-level variant is the right choice when env is already UTF-8.