Trait path_absolutize::Absolutize
source · pub trait Absolutize {
fn absolutize(&self) -> Result<Cow<'_, Path>>;
fn absolutize_from(&self, cwd: &Path) -> Result<Cow<'_, Path>>;
fn absolutize_virtually<P: AsRef<Path>>(
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>;
}Expand description
Let Path and PathBuf have absolutize and absolutize_virtually method.
Required Methods§
sourcefn absolutize(&self) -> Result<Cow<'_, Path>>
fn absolutize(&self) -> Result<Cow<'_, Path>>
Get an absolute path. This works even if the path does not exist.