Skip to main content

effective_path_opt

Function effective_path_opt 

Source
pub fn effective_path_opt(p: Option<&Path>) -> PathBuf
Expand description

Convert an optional Path into an effective absolute project root path. None or “.” resolve to the detected project root; any other path is returned as owned PathBuf.