Struct proper_path_tools::AbsolutePath
source · pub struct AbsolutePath(/* private fields */);
Expand description
Absolute path.
Implementations§
source§impl AbsolutePath
impl AbsolutePath
sourcepub fn parent(&self) -> Option<AbsolutePath>
pub fn parent(&self) -> Option<AbsolutePath>
Returns the Path without its final component, if there is one. Returns None if the path terminates in a root or prefix, or if it’s the empty string.
sourcepub fn join<P>(&self, path: P) -> AbsolutePath
pub fn join<P>(&self, path: P) -> AbsolutePath
Creates an owned AbsolutePath
with path adjoined to self.
Trait Implementations§
source§impl AsRef<Path> for AbsolutePath
impl AsRef<Path> for AbsolutePath
source§impl Clone for AbsolutePath
impl Clone for AbsolutePath
source§fn clone(&self) -> AbsolutePath
fn clone(&self) -> AbsolutePath
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 AbsolutePath
impl Debug for AbsolutePath
source§impl Display for AbsolutePath
impl Display for AbsolutePath
source§impl Hash for AbsolutePath
impl Hash for AbsolutePath
source§impl Ord for AbsolutePath
impl Ord for AbsolutePath
source§fn cmp(&self, other: &AbsolutePath) -> Ordering
fn cmp(&self, other: &AbsolutePath) -> 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 AbsolutePath
impl PartialEq for AbsolutePath
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AbsolutePath
impl PartialOrd for AbsolutePath
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<&Path> for AbsolutePath
impl TryFrom<&Path> for AbsolutePath
source§impl<'a> TryFrom<&'a str> for AbsolutePath
impl<'a> TryFrom<&'a str> for AbsolutePath
source§impl TryFrom<PathBuf> for AbsolutePath
impl TryFrom<PathBuf> for AbsolutePath
impl Eq for AbsolutePath
impl StructuralPartialEq for AbsolutePath
Auto Trait Implementations§
impl Freeze for AbsolutePath
impl RefUnwindSafe for AbsolutePath
impl Send for AbsolutePath
impl Sync for AbsolutePath
impl Unpin for AbsolutePath
impl UnwindSafe for AbsolutePath
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