pub struct PathOwned(/* private fields */);Expand description
Owned Path.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathOwned
impl<'de> Deserialize<'de> for PathOwned
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 From<&AbsolutePath> for PathOwned
impl From<&AbsolutePath> for PathOwned
Source§fn from(value: &AbsolutePath) -> Self
fn from(value: &AbsolutePath) -> Self
Converts to this type from the input type.
Source§impl From<&RelativePath> for PathOwned
impl From<&RelativePath> for PathOwned
Source§fn from(value: &RelativePath) -> Self
fn from(value: &RelativePath) -> Self
Converts to this type from the input type.
Source§impl From<AbsolutePathOwned> for PathOwned
impl From<AbsolutePathOwned> for PathOwned
Source§fn from(value: AbsolutePathOwned) -> Self
fn from(value: AbsolutePathOwned) -> 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<'a> IntoIterator for &'a PathOwned
impl<'a> IntoIterator for &'a PathOwned
Source§impl Ord for PathOwned
impl Ord for PathOwned
Source§impl PartialOrd for PathOwned
impl PartialOrd for PathOwned
Source§impl PathExt for PathOwned
impl PathExt for PathOwned
type PathOwned = PathOwned
type Path = Path
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.
impl Eq for PathOwned
impl StructuralPartialEq for PathOwned
Auto Trait Implementations§
impl Freeze for PathOwned
impl RefUnwindSafe for PathOwned
impl Send for PathOwned
impl Sync for PathOwned
impl Unpin for PathOwned
impl UnsafeUnpin for PathOwned
impl UnwindSafe for PathOwned
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