pub struct Path(/* private fields */);Expand description
Path. Can be relative or absolute.
Implementations§
Trait Implementations§
Source§impl AsRef<AbsolutePath> for Path
impl AsRef<AbsolutePath> for Path
Source§fn as_ref(&self) -> &AbsolutePath
fn as_ref(&self) -> &AbsolutePath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<RelativePath> for Path
impl AsRef<RelativePath> for Path
Source§fn as_ref(&self) -> &RelativePath
fn as_ref(&self) -> &RelativePath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'a> IntoIterator for &'a Path
impl<'a> IntoIterator for &'a Path
Source§impl PartialEq<AbsolutePath> for Path
impl PartialEq<AbsolutePath> for Path
Source§impl PartialEq<RelativePath> for Path
impl PartialEq<RelativePath> for Path
Source§impl PartialOrd for Path
impl PartialOrd for Path
Source§impl PathExt for Path
impl PathExt for Path
Source§fn from_str_unchecked(s: &str) -> &Self::Path
fn from_str_unchecked(s: &str) -> &Self::Path
See: std::path::Path
type PathOwned = PathOwned
type Path = Path
fn validate(buf: &str) -> Result<(), PathError>
fn from_owned_unchecked(buf: String) -> Self::PathOwned
fn as_str(&self) -> &str
fn has_root(&self) -> bool
fn from_owned(buf: String) -> Result<Self::PathOwned, PathError>
fn from_str(buf: &str) -> Result<&Self::Path, PathError>
fn as_path(&self) -> &Self::Path
fn to_path(&self) -> Self::PathOwned
Source§fn components(&self) -> Components<'_> ⓘ
fn components(&self) -> Components<'_> ⓘ
Path components.
Source§fn parents(&self) -> impl Iterator<Item = &Self::Path>
fn parents(&self) -> impl Iterator<Item = &Self::Path>
Parent directories as full path starting at root. Read more
Source§fn paths(&self) -> impl Iterator<Item = &Self::Path>
fn paths(&self) -> impl Iterator<Item = &Self::Path>
Components as full path starting at root. Read more
Source§fn parent_and_file_name_result(&self) -> Result<(&Self::Path, &str), PathError>
fn parent_and_file_name_result(&self) -> Result<(&Self::Path, &str), PathError>
Path and filename.