Struct ra_ap_paths::RelPath
source · pub struct RelPath(/* private fields */);
Expand description
Wrapper around a relative Utf8Path
.
Implementations§
source§impl RelPath
impl RelPath
sourcepub fn new_unchecked(path: &Utf8Path) -> &RelPath
pub fn new_unchecked(path: &Utf8Path) -> &RelPath
Creates a new RelPath
from path
, without checking if it is relative.
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 PartialEq for RelPath
impl PartialEq for RelPath
source§impl PartialOrd for RelPath
impl PartialOrd for RelPath
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