Struct ra_ap_paths::RelPathBuf
source · pub struct RelPathBuf(_);
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<RelPathBuf> for RelPathBuf
impl PartialEq<RelPathBuf> 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<RelPathBuf> for RelPathBuf
impl PartialOrd<RelPathBuf> 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 more