Struct ra_ap_paths::RelPathBuf 
source · 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
source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)