Skip to main content

resolve_parent_from

Function resolve_parent_from 

Source
pub fn resolve_parent_from(
    explicit: Option<&str>,
    env: Option<&str>,
    head: impl FnOnce() -> Option<String>,
) -> Option<String>
Expand description

The precedence rule, with its inputs injected — the testable core.

head is a closure so the file is only read when the earlier, more explicit sources came up empty.