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