Struct ra_ap_paths::RelPath

source ·
pub struct RelPath(/* private fields */);
Expand description

Wrapper around a relative Utf8Path.

Implementations§

source§

impl RelPath

source

pub fn new_unchecked(path: &Utf8Path) -> &RelPath

Creates a new RelPath from path, without checking if it is relative.

source

pub fn to_path_buf(&self) -> RelPathBuf

Equivalent of Utf8Path::to_path_buf for RelPath.

source

pub fn as_utf8_path(&self) -> &Utf8Path

source

pub fn as_str(&self) -> &str

Trait Implementations§

source§

impl AsRef<Path> for RelPath

source§

fn as_ref(&self) -> &Path

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl AsRef<Utf8Path> for RelPath

source§

fn as_ref(&self) -> &Utf8Path

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for RelPath

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for RelPath

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
source§

impl Ord for RelPath

source§

fn cmp(&self, other: &RelPath) -> Ordering

This method returns an Ordering between self and other. Read more
source§

impl PartialEq for RelPath

source§

fn eq(&self, other: &RelPath) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for RelPath

source§

fn partial_cmp(&self, other: &RelPath) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for RelPath

source§

impl StructuralPartialEq for RelPath

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more