pub struct RelativePathOwned(/* private fields */);Expand description
OWned Relative Path.
Trait Implementations§
Source§impl AsRef<RelativePath> for RelativePathOwned
impl AsRef<RelativePath> for RelativePathOwned
Source§fn as_ref(&self) -> &RelativePath
fn as_ref(&self) -> &RelativePath
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for RelativePathOwned
impl AsRef<str> for RelativePathOwned
Source§impl Borrow<RelativePath> for RelativePathOwned
impl Borrow<RelativePath> for RelativePathOwned
Source§fn borrow(&self) -> &RelativePath
fn borrow(&self) -> &RelativePath
Immutably borrows from an owned value. Read more
Source§impl Clone for RelativePathOwned
impl Clone for RelativePathOwned
Source§fn clone(&self) -> RelativePathOwned
fn clone(&self) -> RelativePathOwned
Returns a duplicate 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 RelativePathOwned
impl Debug for RelativePathOwned
Source§impl Deref for RelativePathOwned
impl Deref for RelativePathOwned
Source§impl<'de> Deserialize<'de> for RelativePathOwned
impl<'de> Deserialize<'de> for RelativePathOwned
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 RelativePathOwned
impl Display for RelativePathOwned
Source§impl From<&RelativePath> for RelativePathOwned
impl From<&RelativePath> for RelativePathOwned
Source§fn from(val: &RelativePath) -> Self
fn from(val: &RelativePath) -> Self
Converts to this type from the input type.
Source§impl From<RelativePathOwned> for PathOwned
impl From<RelativePathOwned> for PathOwned
Source§fn from(value: RelativePathOwned) -> Self
fn from(value: RelativePathOwned) -> Self
Converts to this type from the input type.
Source§impl From<RelativePathOwned> for String
impl From<RelativePathOwned> for String
Source§fn from(val: RelativePathOwned) -> Self
fn from(val: RelativePathOwned) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a RelativePathOwned
impl<'a> IntoIterator for &'a RelativePathOwned
Source§impl Ord for RelativePathOwned
impl Ord for RelativePathOwned
Source§fn cmp(&self, other: &RelativePathOwned) -> Ordering
fn cmp(&self, other: &RelativePathOwned) -> 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<RelativePath> for RelativePathOwned
impl PartialEq<RelativePath> for RelativePathOwned
Source§impl PartialEq<RelativePathOwned> for RelativePath
impl PartialEq<RelativePathOwned> for RelativePath
Source§impl PartialEq<str> for RelativePathOwned
impl PartialEq<str> for RelativePathOwned
Source§impl PartialEq for RelativePathOwned
impl PartialEq for RelativePathOwned
Source§impl PartialOrd for RelativePathOwned
impl PartialOrd for RelativePathOwned
Source§impl PathExt for RelativePathOwned
impl PathExt for RelativePathOwned
type PathOwned = RelativePathOwned
type Path = RelativePath
fn validate(buf: &str) -> Result<(), PathError>
fn from_owned_unchecked(buf: String) -> Self::PathOwned
fn from_str_unchecked(buf: &str) -> &Self::Path
fn as_str(&self) -> &str
fn has_root(&self) -> bool
fn from_owned(buf: String) -> Result<Self::PathOwned, PathError>
fn from_str(buf: &str) -> Result<&Self::Path, PathError>
fn as_path(&self) -> &Self::Path
fn to_path(&self) -> Self::PathOwned
Source§fn components(&self) -> Components<'_> ⓘ
fn components(&self) -> Components<'_> ⓘ
Path components.
Source§fn parents(&self) -> impl Iterator<Item = &Self::Path>
fn parents(&self) -> impl Iterator<Item = &Self::Path>
Parent directories as full path starting at root. Read more
Source§fn paths(&self) -> impl Iterator<Item = &Self::Path>
fn paths(&self) -> impl Iterator<Item = &Self::Path>
Components as full path starting at root. Read more
Source§fn parent_and_file_name_result(&self) -> Result<(&Self::Path, &str), PathError>
fn parent_and_file_name_result(&self) -> Result<(&Self::Path, &str), PathError>
Path and filename.
Source§impl Serialize for RelativePathOwned
impl Serialize for RelativePathOwned
impl Eq for RelativePathOwned
impl StructuralPartialEq for RelativePathOwned
Auto Trait Implementations§
impl Freeze for RelativePathOwned
impl RefUnwindSafe for RelativePathOwned
impl Send for RelativePathOwned
impl Sync for RelativePathOwned
impl Unpin for RelativePathOwned
impl UnsafeUnpin for RelativePathOwned
impl UnwindSafe for RelativePathOwned
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more