Skip to main content

layer

Function layer 

Source
fn layer<F>(
    flags: HashMap<String, String>,
    file: RawConfig,
    get_env: F,
) -> RawConfig
where F: Fn(&str) -> Option<String>,
Expand description

The precedence rule itself, with the environment injected so it is testable without mutating the process environment (which races under a parallel test runner).