pub struct RelativePath(/* private fields */);Expand description
A validated, canonical, NFC-normalized relative path under a module root.
Implementations§
Trait Implementations§
Source§impl AsRef<Path> for RelativePath
impl AsRef<Path> for RelativePath
Source§impl AsRef<str> for RelativePath
impl AsRef<str> for RelativePath
Source§impl Clone for RelativePath
impl Clone for RelativePath
Source§fn clone(&self) -> RelativePath
fn clone(&self) -> RelativePath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelativePath
impl Debug for RelativePath
Source§impl<'de> Deserialize<'de> for RelativePath
impl<'de> Deserialize<'de> for RelativePath
Source§fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for RelativePath
impl Display for RelativePath
impl Eq for RelativePath
Source§impl From<RelativePath> for PathBuf
impl From<RelativePath> for PathBuf
Source§fn from(path: RelativePath) -> Self
fn from(path: RelativePath) -> Self
Converts to this type from the input type.
Source§impl From<RelativePath> for String
impl From<RelativePath> for String
Source§fn from(path: RelativePath) -> Self
fn from(path: RelativePath) -> Self
Converts to this type from the input type.
Source§impl FromStr for RelativePath
impl FromStr for RelativePath
Source§impl Hash for RelativePath
impl Hash for RelativePath
Source§impl Ord for RelativePath
impl Ord for RelativePath
Source§fn cmp(&self, other: &RelativePath) -> Ordering
fn cmp(&self, other: &RelativePath) -> Ordering
1.21.0 (const: unstable) · 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 RelativePath
impl PartialEq for RelativePath
Source§fn eq(&self, other: &RelativePath) -> bool
fn eq(&self, other: &RelativePath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RelativePath
impl PartialOrd for RelativePath
Source§impl Serialize for RelativePathwhere
Self: Display,
impl Serialize for RelativePathwhere
Self: Display,
impl StructuralPartialEq for RelativePath
Auto Trait Implementations§
impl Freeze for RelativePath
impl RefUnwindSafe for RelativePath
impl Send for RelativePath
impl Sync for RelativePath
impl Unpin for RelativePath
impl UnsafeUnpin for RelativePath
impl UnwindSafe for RelativePath
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.