Struct ra_ap_paths::RelPathBuf
source · pub struct RelPathBuf(/* private fields */);
Expand description
Wrapper around a relative PathBuf
.
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 PathBuf::as_path
for RelPathBuf
.
Trait Implementations§
source§impl AsRef<Path> for RelPathBuf
impl AsRef<Path> 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 PathBuf
impl From<RelPathBuf> for PathBuf
source§fn from(RelPathBuf: RelPathBuf) -> PathBuf
fn from(RelPathBuf: RelPathBuf) -> PathBuf
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§fn eq(&self, other: &RelPathBuf) -> bool
fn eq(&self, other: &RelPathBuf) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RelPathBuf
impl PartialOrd for RelPathBuf
source§fn partial_cmp(&self, other: &RelPathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &RelPathBuf) -> 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<&str> for RelPathBuf
impl TryFrom<&str> for RelPathBuf
source§impl TryFrom<PathBuf> for RelPathBuf
impl TryFrom<PathBuf> for RelPathBuf
impl Eq for RelPathBuf
impl StructuralEq for RelPathBuf
impl StructuralPartialEq for RelPathBuf
Auto Trait Implementations§
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