pub type StartDir = AbsolutePath;
Expand description
An absolute path used as start directory in a package build environment
This is a type alias for AbsolutePath
§Examples
use std::str::FromStr;
use alpm_types::{Error, StartDir};
// Create StartDir from &str and format it
assert_eq!(
"/etc",
StartDir::from_str("/etc")?.to_string()
);
Aliased Type§
struct StartDir(PathBuf);
Fields§
§0: PathBuf
Implementations
Trait Implementations
source§impl Clone for AbsolutePath
impl Clone for AbsolutePath
source§fn clone(&self) -> AbsolutePath
fn clone(&self) -> AbsolutePath
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more