pub struct RelPathBuf(/* private fields */);
Expand description
Wrapper around a relative Utf8PathBuf
.
Implementations§
Source§impl RelPathBuf
impl RelPathBuf
Sourcepub fn as_path(&self) -> &RelPath
pub fn as_path(&self) -> &RelPath
Coerces to a RelPath
slice.
Equivalent of Utf8PathBuf::as_path
for RelPathBuf
.
Methods from Deref<Target = RelPath>§
Sourcepub fn to_path_buf(&self) -> RelPathBuf
pub fn to_path_buf(&self) -> RelPathBuf
Equivalent of Utf8Path::to_path_buf
for RelPath
.
pub fn as_utf8_path(&self) -> &Utf8Path
pub fn as_str(&self) -> &str
Trait Implementations§
Source§impl AsRef<Path> for RelPathBuf
impl AsRef<Path> for RelPathBuf
Source§impl AsRef<Utf8Path> for RelPathBuf
impl AsRef<Utf8Path> for RelPathBuf
Source§impl Clone for RelPathBuf
impl Clone for RelPathBuf
Source§fn clone(&self) -> RelPathBuf
fn clone(&self) -> RelPathBuf
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 moreSource§impl Debug for RelPathBuf
impl Debug for RelPathBuf
Source§impl Deref for RelPathBuf
impl Deref for RelPathBuf
Source§impl From<RelPathBuf> for Utf8PathBuf
impl From<RelPathBuf> for Utf8PathBuf
Source§fn from(RelPathBuf: RelPathBuf) -> Utf8PathBuf
fn from(RelPathBuf: RelPathBuf) -> Utf8PathBuf
Converts to this type from the input type.
Source§impl Hash for RelPathBuf
impl Hash for RelPathBuf
Source§impl Ord for RelPathBuf
impl Ord for RelPathBuf
Source§fn cmp(&self, other: &RelPathBuf) -> Ordering
fn cmp(&self, other: &RelPathBuf) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RelPathBuf
impl PartialEq for RelPathBuf
Source§impl PartialOrd for RelPathBuf
impl PartialOrd for RelPathBuf
Source§impl TryFrom<&str> for RelPathBuf
impl TryFrom<&str> for RelPathBuf
Source§type Error = Utf8PathBuf
type Error = Utf8PathBuf
The type returned in the event of a conversion error.
Source§fn try_from(path: &str) -> Result<RelPathBuf, Utf8PathBuf>
fn try_from(path: &str) -> Result<RelPathBuf, Utf8PathBuf>
Performs the conversion.
Source§impl TryFrom<Utf8PathBuf> for RelPathBuf
impl TryFrom<Utf8PathBuf> for RelPathBuf
Source§type Error = Utf8PathBuf
type Error = Utf8PathBuf
The type returned in the event of a conversion error.
Source§fn try_from(path_buf: Utf8PathBuf) -> Result<RelPathBuf, Utf8PathBuf>
fn try_from(path_buf: Utf8PathBuf) -> Result<RelPathBuf, Utf8PathBuf>
Performs the conversion.
impl Eq for RelPathBuf
impl StructuralPartialEq for RelPathBuf
Auto Trait Implementations§
impl Freeze for RelPathBuf
impl RefUnwindSafe for RelPathBuf
impl Send for RelPathBuf
impl Sync for RelPathBuf
impl Unpin for RelPathBuf
impl UnwindSafe for RelPathBuf
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more