Trait path_absolutize::Absolutize [−][src]
pub trait Absolutize { fn absolutize(&self) -> Result<Cow<'_, Path>>; fn absolutize_virtually<P: AsRef<Path>>(
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>; }
Let Path
and PathBuf
have absolutize
and absolutize_virtually
method.
Required methods
fn absolutize(&self) -> Result<Cow<'_, Path>>
[src]
Get an absolute path. This works even if the path does not exist.
fn absolutize_virtually<P: AsRef<Path>>(
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>
[src]
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>
Get an absolute path. This works even if the path does not exist.
Implementations on Foreign Types
impl Absolutize for Path
[src]
fn absolutize(&self) -> Result<Cow<'_, Path>>
[src]
fn absolutize_virtually<P: AsRef<Path>>(
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>
[src]
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>
impl Absolutize for PathBuf
[src]
fn absolutize(&self) -> Result<Cow<'_, Path>>
[src]
fn absolutize_virtually<P: AsRef<Path>>(
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>
[src]
&self,
virtual_root: P
) -> Result<Cow<'_, Path>>