Struct artifact_app::core::types::PARENT_PATH
[−]
pub struct PARENT_PATH { /* fields omitted */ }
Methods from Deref<Target=PathBuf>
fn as_path(&self) -> &Path
1.0.0
Coerces to a Path
slice.
Examples
use std::path::{Path, PathBuf}; let p = PathBuf::from("/test"); assert_eq!(Path::new("/test"), p.as_path());
fn into_os_string(self) -> OsString
1.0.0
Consumes the PathBuf
, yielding its internal OsString
storage.
Examples
use std::path::PathBuf; let p = PathBuf::from("/the/head"); let os_str = p.into_os_string();
fn into_boxed_path(self) -> Box<Path>
🔬 This is a nightly-only experimental API. (
into_boxed_path
)Converts this PathBuf
into a boxed Path
.