pub struct AbsolutePath(/* private fields */);Expand description
Absolute Path.
Implementations§
Trait Implementations§
Source§impl AsRef<AbsolutePath> for AbsolutePathOwned
impl AsRef<AbsolutePath> for AbsolutePathOwned
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<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<AbsolutePath> for str
impl AsRef<AbsolutePath> for str
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<str> for AbsolutePath
impl AsRef<str> for AbsolutePath
Source§impl Borrow<AbsolutePath> for AbsolutePathOwned
impl Borrow<AbsolutePath> for AbsolutePathOwned
Source§fn borrow(&self) -> &AbsolutePath
fn borrow(&self) -> &AbsolutePath
Immutably borrows from an owned value. Read more
Source§impl Debug for AbsolutePath
impl Debug for AbsolutePath
Source§impl Display for AbsolutePath
impl Display for AbsolutePath
Source§impl From<&AbsolutePath> for AbsolutePathOwned
impl From<&AbsolutePath> for AbsolutePathOwned
Source§fn from(val: &AbsolutePath) -> Self
fn from(val: &AbsolutePath) -> Self
Converts to this type from the input type.
Source§impl From<&AbsolutePath> for PathOwned
impl From<&AbsolutePath> for PathOwned
Source§fn from(value: &AbsolutePath) -> Self
fn from(value: &AbsolutePath) -> Self
Converts to this type from the input type.
Source§impl From<&AbsolutePath> for String
impl From<&AbsolutePath> for String
Source§fn from(val: &AbsolutePath) -> Self
fn from(val: &AbsolutePath) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a AbsolutePath
impl<'a> IntoIterator for &'a AbsolutePath
Source§impl Ord for AbsolutePath
impl Ord for AbsolutePath
Source§impl PartialEq<AbsolutePath> for AbsolutePathOwned
impl PartialEq<AbsolutePath> for AbsolutePathOwned
Source§impl PartialEq<AbsolutePath> for Path
impl PartialEq<AbsolutePath> for Path
Source§impl PartialEq<AbsolutePathOwned> for AbsolutePath
impl PartialEq<AbsolutePathOwned> for AbsolutePath
Source§impl PartialEq<str> for AbsolutePath
impl PartialEq<str> for AbsolutePath
Source§impl PartialEq for AbsolutePath
impl PartialEq for AbsolutePath
Source§impl PartialOrd for AbsolutePath
impl PartialOrd for AbsolutePath
Source§impl PathExt for AbsolutePath
impl PathExt for AbsolutePath
Source§fn from_str_unchecked(s: &str) -> &Self::Path
fn from_str_unchecked(s: &str) -> &Self::Path
See: std::path::Path
type PathOwned = AbsolutePathOwned
type Path = AbsolutePath
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.
Source§impl ToOwned for AbsolutePath
impl ToOwned for AbsolutePath
Source§type Owned = AbsolutePathOwned
type Owned = AbsolutePathOwned
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