pub struct AbsPath(/* private fields */);Implementations§
Source§impl AbsPath
impl AbsPath
pub fn new(path: &Path) -> Result<&Self>
pub fn to_abs_path_buf(&self) -> AbsPathBuf
pub fn join(&self, name: impl AsRef<str>) -> AbsPathBuf
pub fn join_rel_path(&self, relative_path: &RelPath) -> AbsPathBuf
pub fn parent(&self) -> Option<&AbsPath>
pub fn starts_with(&self, other: &AbsPath) -> bool
pub fn ends_with(&self, other: &RelPath) -> bool
pub fn is_descendant_of(&self, ancestor: &Self) -> bool
pub fn file_name(&self) -> Option<&str>
pub fn display(&self) -> impl Display + '_
pub fn as_std_path(&self) -> &Path
pub fn as_str(&self) -> &str
pub fn ancestors(&self) -> impl Iterator<Item = &AbsPath>
pub fn strip_prefix<'a>(&'a self, prefix: &AbsPath) -> Option<Cow<'a, RelPath>>
Trait Implementations§
Source§impl AsRef<AbsPath> for AbsPathBuf
impl AsRef<AbsPath> for AbsPathBuf
Source§impl Borrow<AbsPath> for AbsPathBuf
impl Borrow<AbsPath> for AbsPathBuf
impl Eq for AbsPath
Source§impl PartialEq<AbsPath> for AbsPathBuf
impl PartialEq<AbsPath> for AbsPathBuf
Source§impl PartialEq<AbsPathBuf> for AbsPath
impl PartialEq<AbsPathBuf> for AbsPath
Source§impl PartialOrd for AbsPath
impl PartialOrd for AbsPath
impl StructuralPartialEq for AbsPath
Source§impl ToOwned for AbsPath
impl ToOwned for AbsPath
Source§type Owned = AbsPathBuf
type Owned = AbsPathBuf
The resulting type after obtaining ownership.
Source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · Source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more