/// Executes given code with a reference to an absolute path.
/// If `path` is already absolute, a direct reference is provided and no allocations happen.
/// If `path` is relative, it would be appended to the `self.base_path` first and a reference
/// to the temporary result will be provided.
Executes given code with a reference to an absolute path.
If `path` is already absolute, a direct reference is provided and no allocations happen.
If `path` is relative, it would be appended to the `self.base_path` first and a reference
to the temporary result will be provided.
Executes given code with a reference to an absolute path . If ` path ` is already absolute a direct reference is provided and no allocations happen . If ` path ` is relative it would be appended to the ` self . base_path ` first and a reference to the temporary result will be provided .
fn with_absolute_path<F, R>(&self, path: &Path, f: F) -> R
    where
        F: Fn(&Path) -> R,
    {
        if path.is_absolute() {
            (f)(path)
        } else {
            (f)(&self.base_dir.join(path))
        }
    }
fn with_absolute_path < F , R > ( & self , path : & Path , f : F ) -> R where F : Fn ( & Path ) -> R , { if path . is_absolute ( ) { ( f ) ( path ) } else { ( f ) ( & self . base_dir . join ( path ) ) } }
Executes given code with a reference to an absolute path.
Executes given code with a reference to an absolute path .
&self
path
&Path
f
F