pub struct Path<Form: PathForm = Any> { /* private fields */ }Expand description
A wrapper around std::path::Path with extra invariants determined by its Form.
The possible path forms are Any, Relative, Absolute, or Canonical.
To learn more, view the documentation on PathForm or any of the individual forms.
There are also several type aliases available, corresponding to each PathForm:
RelativePath(same asPath<Relative>)AbsolutePath(same asPath<Absolute>)CanonicalPath(same asPath<Canonical>)
If the Form is not specified, then it defaults to Any, so Path and Path<Any>
are one in the same.
§Converting to std::path types
Paths with form Any cannot be easily referenced as a std::path::Path by design.
Other Nushell crates need to account for the emulated current working directory
before passing a path to functions in std or other third party crates.
You can join a Path onto an AbsolutePath or a CanonicalPath.
This will return an AbsolutePathBuf which can be easily referenced as a std::path::Path.
If you really mean it, you can instead use as_relative_std_path
to get the underlying std::path::Path from a Path.
But this may cause third-party code to use std::env::current_dir to resolve
the path which is almost always incorrect behavior. Extra care is needed to ensure that this
is not the case after using as_relative_std_path.
Implementations§
source§impl<Form: PathForm> Path<Form>
impl<Form: PathForm> Path<Form>
sourcepub fn try_new<'a, T>(
path: &'a T,
) -> Result<&'a Self, <&'a T as TryInto<&'a Self>>::Error>
pub fn try_new<'a, T>( path: &'a T, ) -> Result<&'a Self, <&'a T as TryInto<&'a Self>>::Error>
Attempt to create a new Path from a reference of another type.
This is a convenience method instead of having to use try_into with a type annotation.
§Examples
use nu_path::{AbsolutePath, RelativePath};
assert!(AbsolutePath::try_new("foo.txt").is_err());
assert!(RelativePath::try_new("foo.txt").is_ok());sourcepub fn to_string_lossy(&self) -> Cow<'_, str>
pub fn to_string_lossy(&self) -> Cow<'_, str>
Converts a Path to a Cow<str>.
Any non-Unicode sequences are replaced with U+FFFD REPLACEMENT CHARACTER.
§Examples
Calling to_string_lossy on a Path with valid unicode:
use nu_path::Path;
let path = Path::new("foo.txt");
assert_eq!(path.to_string_lossy(), "foo.txt");Had path contained invalid unicode, the to_string_lossy call might have returned
"fo�.txt".
sourcepub fn to_path_buf(&self) -> PathBuf<Form>
pub fn to_path_buf(&self) -> PathBuf<Form>
sourcepub fn parent(&self) -> Option<&Self>
pub fn parent(&self) -> Option<&Self>
Returns the Path without its final component, if there is one.
This means it returns Some("") for relative paths with one component.
Returns None if the path terminates in a root or prefix, or if it’s
the empty string.
§Examples
use nu_path::Path;
let path = Path::new("/foo/bar");
let parent = path.parent().unwrap();
assert_eq!(parent, Path::new("/foo"));
let grand_parent = parent.parent().unwrap();
assert_eq!(grand_parent, Path::new("/"));
assert_eq!(grand_parent.parent(), None);
let relative_path = Path::new("foo/bar");
let parent = relative_path.parent();
assert_eq!(parent, Some(Path::new("foo")));
let grand_parent = parent.and_then(Path::parent);
assert_eq!(grand_parent, Some(Path::new("")));
let great_grand_parent = grand_parent.and_then(Path::parent);
assert_eq!(great_grand_parent, None);sourcepub fn ancestors(&self) -> Ancestors<'_, Form> ⓘ
pub fn ancestors(&self) -> Ancestors<'_, Form> ⓘ
Produces an iterator over a Path and its ancestors.
The iterator will yield the Path that is returned if the parent method
is used zero or more times. That means, the iterator will yield &self,
&self.parent().unwrap(), &self.parent().unwrap().parent().unwrap() and so on.
If the parent method returns None, the iterator will do likewise.
The iterator will always yield at least one value, namely &self.
§Examples
use nu_path::Path;
let mut ancestors = Path::new("/foo/bar").ancestors();
assert_eq!(ancestors.next(), Some(Path::new("/foo/bar")));
assert_eq!(ancestors.next(), Some(Path::new("/foo")));
assert_eq!(ancestors.next(), Some(Path::new("/")));
assert_eq!(ancestors.next(), None);
let mut ancestors = Path::new("../foo/bar").ancestors();
assert_eq!(ancestors.next(), Some(Path::new("../foo/bar")));
assert_eq!(ancestors.next(), Some(Path::new("../foo")));
assert_eq!(ancestors.next(), Some(Path::new("..")));
assert_eq!(ancestors.next(), Some(Path::new("")));
assert_eq!(ancestors.next(), None);sourcepub fn file_name(&self) -> Option<&OsStr>
pub fn file_name(&self) -> Option<&OsStr>
Returns the final component of a Path, if there is one.
If the path is a normal file, this is the file name. If it’s the path of a directory, this is the directory name.
Returns None if the path terminates in ...
§Examples
use nu_path::Path;
use std::ffi::OsStr;
assert_eq!(Some(OsStr::new("bin")), Path::new("/usr/bin/").file_name());
assert_eq!(Some(OsStr::new("foo.txt")), Path::new("tmp/foo.txt").file_name());
assert_eq!(Some(OsStr::new("foo.txt")), Path::new("foo.txt/.").file_name());
assert_eq!(Some(OsStr::new("foo.txt")), Path::new("foo.txt/.//").file_name());
assert_eq!(None, Path::new("foo.txt/..").file_name());
assert_eq!(None, Path::new("/").file_name());sourcepub fn strip_prefix(
&self,
base: impl AsRef<Path>,
) -> Result<&RelativePath, StripPrefixError>
pub fn strip_prefix( &self, base: impl AsRef<Path>, ) -> Result<&RelativePath, StripPrefixError>
Returns a relative path that, when joined onto base, yields self.
§Examples
use nu_path::{Path, PathBuf};
let path = Path::new("/test/haha/foo.txt");
assert_eq!(path.strip_prefix("/").unwrap(), Path::new("test/haha/foo.txt"));
assert_eq!(path.strip_prefix("/test").unwrap(), Path::new("haha/foo.txt"));
assert_eq!(path.strip_prefix("/test/").unwrap(), Path::new("haha/foo.txt"));
assert_eq!(path.strip_prefix("/test/haha/foo.txt").unwrap(), Path::new(""));
assert_eq!(path.strip_prefix("/test/haha/foo.txt/").unwrap(), Path::new(""));
assert!(path.strip_prefix("test").is_err());
assert!(path.strip_prefix("/haha").is_err());
let prefix = PathBuf::from("/test/");
assert_eq!(path.strip_prefix(prefix).unwrap(), Path::new("haha/foo.txt"));sourcepub fn starts_with(&self, base: impl AsRef<Path>) -> bool
pub fn starts_with(&self, base: impl AsRef<Path>) -> bool
Determines whether base is a prefix of self.
Only considers whole path components to match.
§Examples
use nu_path::Path;
let path = Path::new("/etc/passwd");
assert!(path.starts_with("/etc"));
assert!(path.starts_with("/etc/"));
assert!(path.starts_with("/etc/passwd"));
assert!(path.starts_with("/etc/passwd/")); // extra slash is okay
assert!(path.starts_with("/etc/passwd///")); // multiple extra slashes are okay
assert!(!path.starts_with("/e"));
assert!(!path.starts_with("/etc/passwd.txt"));
assert!(!Path::new("/etc/foo.rs").starts_with("/etc/foo"));sourcepub fn ends_with(&self, child: impl AsRef<Path>) -> bool
pub fn ends_with(&self, child: impl AsRef<Path>) -> bool
Determines whether child is a suffix of self.
Only considers whole path components to match.
§Examples
use nu_path::Path;
let path = Path::new("/etc/resolv.conf");
assert!(path.ends_with("resolv.conf"));
assert!(path.ends_with("etc/resolv.conf"));
assert!(path.ends_with("/etc/resolv.conf"));
assert!(!path.ends_with("/resolv.conf"));
assert!(!path.ends_with("conf")); // use .extension() insteadsourcepub fn file_stem(&self) -> Option<&OsStr>
pub fn file_stem(&self) -> Option<&OsStr>
Extracts the stem (non-extension) portion of self.file_name.
The stem is:
None, if there is no file name;- The entire file name if there is no embedded
.; - The entire file name if the file name begins with
.and has no other.s within; - Otherwise, the portion of the file name before the final
.
§Examples
use nu_path::Path;
assert_eq!("foo", Path::new("foo.rs").file_stem().unwrap());
assert_eq!("foo.tar", Path::new("foo.tar.gz").file_stem().unwrap());sourcepub fn extension(&self) -> Option<&OsStr>
pub fn extension(&self) -> Option<&OsStr>
Extracts the extension (without the leading dot) of self.file_name,
if possible.
The extension is:
None, if there is no file name;None, if there is no embedded.;None, if the file name begins with.and has no other.s within;- Otherwise, the portion of the file name after the final
.
§Examples
use nu_path::Path;
assert_eq!("rs", Path::new("foo.rs").extension().unwrap());
assert_eq!("gz", Path::new("foo.tar.gz").extension().unwrap());sourcepub fn components(&self) -> Components<'_>
pub fn components(&self) -> Components<'_>
Produces an iterator over the Components of the path.
When parsing the path, there is a small amount of normalization:
-
Repeated separators are ignored, so
a/banda//bboth haveaandbas components. -
Occurrences of
.are normalized away, except if they are at the beginning of the path. For example,a/./b,a/b/,a/b/.anda/ball haveaandbas components, but./a/bstarts with an additionalCurDircomponent. -
A trailing slash is normalized away,
/a/band/a/b/are equivalent.
Note that no other normalization takes place; in particular, a/c
and a/b/../c are distinct, to account for the possibility that b
is a symbolic link (so its parent isn’t a).
§Examples
use nu_path::Path;
use std::path::Component;
use std::ffi::OsStr;
let mut components = Path::new("/tmp/foo.txt").components();
assert_eq!(components.next(), Some(Component::RootDir));
assert_eq!(components.next(), Some(Component::Normal(OsStr::new("tmp"))));
assert_eq!(components.next(), Some(Component::Normal(OsStr::new("foo.txt"))));
assert_eq!(components.next(), None)sourcepub fn iter(&self) -> Iter<'_>
pub fn iter(&self) -> Iter<'_>
Produces an iterator over the path’s components viewed as OsStr slices.
For more information about the particulars of how the path is separated into components,
see components.
§Examples
use nu_path::Path;
use std::ffi::OsStr;
let mut it = Path::new("/tmp/foo.txt").iter();
assert_eq!(it.next(), Some(OsStr::new(&std::path::MAIN_SEPARATOR.to_string())));
assert_eq!(it.next(), Some(OsStr::new("tmp")));
assert_eq!(it.next(), Some(OsStr::new("foo.txt")));
assert_eq!(it.next(), None)sourcepub fn display(&self) -> Display<'_>
pub fn display(&self) -> Display<'_>
Returns an object that implements Display for safely printing paths
that may contain non-Unicode data. This may perform lossy conversion,
depending on the platform. If you would like an implementation which escapes the path
please use Debug instead.
§Examples
use nu_path::Path;
let path = Path::new("/tmp/foo.rs");
println!("{}", path.display());sourcepub fn into_path_buf(self: Box<Self>) -> PathBuf<Form>
pub fn into_path_buf(self: Box<Self>) -> PathBuf<Form>
sourcepub fn cast<To>(&self) -> &Path<To>
pub fn cast<To>(&self) -> &Path<To>
Returns a reference to the same Path in a different form.
PathForms can be converted to one another based on PathCast implementations.
Namely, the following form conversions are possible:
§Examples
use nu_path::{Path, RelativePath};
let relative = RelativePath::try_new("test.txt").unwrap();
let p: &Path = relative.cast();
assert_eq!(p, relative);source§impl Path
impl Path
sourcepub fn new<P: AsRef<OsStr> + ?Sized>(path: &P) -> &Self
pub fn new<P: AsRef<OsStr> + ?Sized>(path: &P) -> &Self
Create a new Path by wrapping a string slice.
This is a cost-free conversion.
§Examples
use nu_path::Path;
Path::new("foo.txt");You can create Paths from Strings, or even other Paths:
use nu_path::Path;
let string = String::from("foo.txt");
let from_string = Path::new(&string);
let from_path = Path::new(&from_string);
assert_eq!(from_string, from_path);sourcepub fn as_mut_os_str(&mut self) -> &mut OsStr
pub fn as_mut_os_str(&mut self) -> &mut OsStr
sourcepub fn is_absolute(&self) -> bool
pub fn is_absolute(&self) -> bool
Returns true if the Path is absolute, i.e., if it is independent of
the current directory.
-
On Unix, a path is absolute if it starts with the root, so
is_absoluteandhas_rootare equivalent. -
On Windows, a path is absolute if it has a prefix and starts with the root:
c:\windowsis absolute, whilec:tempand\tempare not.
§Examples
use nu_path::Path;
assert!(!Path::new("foo.txt").is_absolute());sourcepub fn is_relative(&self) -> bool
pub fn is_relative(&self) -> bool
See is_absolute’s documentation for more details.
§Examples
use nu_path::Path;
assert!(Path::new("foo.txt").is_relative());sourcepub fn try_absolute(&self) -> Result<&AbsolutePath, &RelativePath>
pub fn try_absolute(&self) -> Result<&AbsolutePath, &RelativePath>
Returns an Ok AbsolutePath if the Path is absolute.
Otherwise, returns an Err RelativePath.
§Examples
use nu_path::Path;
assert!(Path::new("test.txt").try_absolute().is_err());sourcepub fn try_relative(&self) -> Result<&RelativePath, &AbsolutePath>
pub fn try_relative(&self) -> Result<&RelativePath, &AbsolutePath>
Returns an Ok RelativePath if the Path is relative.
Otherwise, returns an Err AbsolutePath.
§Examples
use nu_path::Path;
assert!(Path::new("test.txt").try_relative().is_ok());source§impl<Form: PathJoin> Path<Form>
impl<Form: PathJoin> Path<Form>
sourcepub fn join(&self, path: impl AsRef<Path>) -> PathBuf<Form::Output>
pub fn join(&self, path: impl AsRef<Path>) -> PathBuf<Form::Output>
Creates an owned PathBuf with path adjoined to self.
If path is absolute, it replaces the current path.
See PathBuf::push for more details on what it means to adjoin a path.
§Examples
use nu_path::{Path, PathBuf};
assert_eq!(Path::new("/etc").join("passwd"), PathBuf::from("/etc/passwd"));
assert_eq!(Path::new("/etc").join("/bin/sh"), PathBuf::from("/bin/sh"));source§impl<Form: PathSet> Path<Form>
impl<Form: PathSet> Path<Form>
sourcepub fn with_file_name(&self, file_name: impl AsRef<OsStr>) -> PathBuf<Form>
pub fn with_file_name(&self, file_name: impl AsRef<OsStr>) -> PathBuf<Form>
Creates an owned PathBuf like self but with the given file name.
See PathBuf::set_file_name for more details.
§Examples
use nu_path::{Path, PathBuf};
let path = Path::new("/tmp/foo.png");
assert_eq!(path.with_file_name("bar"), PathBuf::from("/tmp/bar"));
assert_eq!(path.with_file_name("bar.txt"), PathBuf::from("/tmp/bar.txt"));
let path = Path::new("/tmp");
assert_eq!(path.with_file_name("var"), PathBuf::from("/var"));sourcepub fn with_extension(&self, extension: impl AsRef<OsStr>) -> PathBuf<Form>
pub fn with_extension(&self, extension: impl AsRef<OsStr>) -> PathBuf<Form>
Creates an owned PathBuf like self but with the given extension.
See PathBuf::set_extension for more details.
§Examples
use nu_path::{Path, PathBuf};
let path = Path::new("foo.rs");
assert_eq!(path.with_extension("txt"), PathBuf::from("foo.txt"));
let path = Path::new("foo.tar.gz");
assert_eq!(path.with_extension(""), PathBuf::from("foo.tar"));
assert_eq!(path.with_extension("xz"), PathBuf::from("foo.tar.xz"));
assert_eq!(path.with_extension("").with_extension("txt"), PathBuf::from("foo.txt"));source§impl<Form: MaybeRelative> Path<Form>
impl<Form: MaybeRelative> Path<Form>
sourcepub fn as_relative_std_path(&self) -> &Path
pub fn as_relative_std_path(&self) -> &Path
Returns the, potentially relative, underlying std::path::Path.
§Note
Caution should be taken when using this function. Nushell keeps track of an emulated current
working directory, and using the std::path::Path returned from this method will likely
use std::env::current_dir to resolve the path instead of using the emulated current
working directory.
Instead, you should probably join this path onto the emulated current working directory.
Any AbsolutePath or CanonicalPath will also suffice.
§Examples
use nu_path::Path;
let p = Path::new("test.txt");
assert_eq!(std::path::Path::new("test.txt"), p.as_relative_std_path());sourcepub fn has_root(&self) -> bool
pub fn has_root(&self) -> bool
-
On Unix, a path has a root if it begins with
/. -
On Windows, a path has a root if it:
- has no prefix and begins with a separator, e.g.,
\windows - has a prefix followed by a separator, e.g.,
c:\windowsbut notc:windows - has any non-disk prefix, e.g.,
\\server\share
- has no prefix and begins with a separator, e.g.,
§Examples
use nu_path::Path;
assert!(Path::new("/etc/passwd").has_root());source§impl<Form: IsAbsolute> Path<Form>
impl<Form: IsAbsolute> Path<Form>
sourcepub fn as_std_path(&self) -> &Path
pub fn as_std_path(&self) -> &Path
Returns the underlying std::path::Path.
§Examples
use nu_path::AbsolutePath;
let p = AbsolutePath::try_new("/test").unwrap();
assert_eq!(std::path::Path::new("/test"), p.as_std_path());sourcepub fn to_std_path_buf(&self) -> PathBuf
pub fn to_std_path_buf(&self) -> PathBuf
Converts a Path to an owned std::path::PathBuf.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/foo").unwrap();
assert_eq!(path.to_std_path_buf(), std::path::PathBuf::from("/foo"));sourcepub fn metadata(&self) -> Result<Metadata>
pub fn metadata(&self) -> Result<Metadata>
Queries the file system to get information about a file, directory, etc.
This function will traverse symbolic links to query information about the destination file.
This is an alias to std::fs::metadata.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/Minas/tirith").unwrap();
let metadata = path.metadata().expect("metadata call failed");
println!("{:?}", metadata.file_type());sourcepub fn read_dir(&self) -> Result<ReadDir>
pub fn read_dir(&self) -> Result<ReadDir>
Returns an iterator over the entries within a directory.
The iterator will yield instances of io::Result<fs::DirEntry>.
New errors may be encountered after an iterator is initially constructed.
This is an alias to std::fs::read_dir.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/laputa").unwrap();
for entry in path.read_dir().expect("read_dir call failed") {
if let Ok(entry) = entry {
println!("{:?}", entry.path());
}
}sourcepub fn exists(&self) -> bool
pub fn exists(&self) -> bool
Returns true if the path points at an existing entity.
Warning: this method may be error-prone, consider using try_exists
instead! It also has a risk of introducing time-of-check to time-of-use (TOCTOU) bugs.
This function will traverse symbolic links to query information about the destination file.
If you cannot access the metadata of the file, e.g. because of a permission error
or broken symbolic links, this will return false.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/does_not_exist").unwrap();
assert!(!path.exists());sourcepub fn is_file(&self) -> bool
pub fn is_file(&self) -> bool
Returns true if the path exists on disk and is pointing at a regular file.
This function will traverse symbolic links to query information about the destination file.
If you cannot access the metadata of the file, e.g. because of a permission error
or broken symbolic links, this will return false.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/is_a_directory/").unwrap();
assert_eq!(path.is_file(), false);
let path = AbsolutePath::try_new("/a_file.txt").unwrap();
assert_eq!(path.is_file(), true);§See Also
When the goal is simply to read from (or write to) the source, the most reliable way
to test the source can be read (or written to) is to open it. Only using is_file can
break workflows like diff <( prog_a ) on a Unix-like system for example.
See std::fs::File::open or std::fs::OpenOptions::open for more information.
sourcepub fn is_dir(&self) -> bool
pub fn is_dir(&self) -> bool
Returns true if the path exists on disk and is pointing at a directory.
This function will traverse symbolic links to query information about the destination file.
If you cannot access the metadata of the file, e.g. because of a permission error
or broken symbolic links, this will return false.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/is_a_directory/").unwrap();
assert_eq!(path.is_dir(), true);
let path = AbsolutePath::try_new("/a_file.txt").unwrap();
assert_eq!(path.is_dir(), false);source§impl Path<Absolute>
impl Path<Absolute>
sourcepub fn canonicalize(&self) -> Result<CanonicalPathBuf>
pub fn canonicalize(&self) -> Result<CanonicalPathBuf>
Returns the canonical, absolute form of the path with all intermediate components normalized and symbolic links resolved.
On Windows, this will also simplify to a winuser path.
This is an alias to std::fs::canonicalize.
§Examples
use nu_path::{AbsolutePath, PathBuf};
let path = AbsolutePath::try_new("/foo/test/../test/bar.rs").unwrap();
assert_eq!(path.canonicalize().unwrap(), PathBuf::from("/foo/test/bar.rs"));sourcepub fn read_link(&self) -> Result<AbsolutePathBuf>
pub fn read_link(&self) -> Result<AbsolutePathBuf>
Reads a symbolic link, returning the file that the link points to.
This is an alias to std::fs::read_link.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/laputa/sky_castle.rs").unwrap();
let path_link = path.read_link().expect("read_link call failed");sourcepub fn try_exists(&self) -> Result<bool>
pub fn try_exists(&self) -> Result<bool>
Returns Ok(true) if the path points at an existing entity.
This function will traverse symbolic links to query information about the destination file.
In case of broken symbolic links this will return Ok(false).
Path::exists only checks whether or not a path was both found and readable.
By contrast, try_exists will return Ok(true) or Ok(false),
respectively, if the path was verified to exist or not exist.
If its existence can neither be confirmed nor denied, it will propagate an Err instead.
This can be the case if e.g. listing permission is denied on one of the parent directories.
Note that while this avoids some pitfalls of the exists method,
it still can not prevent time-of-check to time-of-use (TOCTOU) bugs.
You should only use it in scenarios where those bugs are not an issue.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/does_not_exist").unwrap();
assert!(!path.try_exists().unwrap());
let path = AbsolutePath::try_new("/root/secret_file.txt").unwrap();
assert!(path.try_exists().is_err());sourcepub fn is_symlink(&self) -> bool
pub fn is_symlink(&self) -> bool
Returns true if the path exists on disk and is pointing at a symbolic link.
This function will not traverse symbolic links. In case of a broken symbolic link this will also return true.
If you cannot access the directory containing the file, e.g., because of a permission error, this will return false.
§Examples
use nu_path::AbsolutePath;
use std::os::unix::fs::symlink;
let link_path = AbsolutePath::try_new("/link").unwrap();
symlink("/origin_does_not_exist/", link_path).unwrap();
assert_eq!(link_path.is_symlink(), true);
assert_eq!(link_path.exists(), false);sourcepub fn symlink_metadata(&self) -> Result<Metadata>
pub fn symlink_metadata(&self) -> Result<Metadata>
Queries the metadata about a file without following symlinks.
This is an alias to std::fs::symlink_metadata.
§Examples
use nu_path::AbsolutePath;
let path = AbsolutePath::try_new("/Minas/tirith").unwrap();
let metadata = path.symlink_metadata().expect("symlink_metadata call failed");
println!("{:?}", metadata.file_type());source§impl Path<Canonical>
impl Path<Canonical>
sourcepub fn as_absolute(&self) -> &AbsolutePath
pub fn as_absolute(&self) -> &AbsolutePath
Returns a CanonicalPath as a AbsolutePath.
§Examples
use nu_path::AbsolutePath;
let absolute = AbsolutePath::try_new("/test").unwrap();
let p = absolute.canonicalize().unwrap();
assert_eq!(absolute, p.as_absolute());Trait Implementations§
source§impl AsRef<Path<Absolute>> for Arc<CanonicalPath>
impl AsRef<Path<Absolute>> for Arc<CanonicalPath>
source§fn as_ref(&self) -> &AbsolutePath
fn as_ref(&self) -> &AbsolutePath
source§impl AsRef<Path<Absolute>> for Box<CanonicalPath>
impl AsRef<Path<Absolute>> for Box<CanonicalPath>
source§fn as_ref(&self) -> &AbsolutePath
fn as_ref(&self) -> &AbsolutePath
source§impl AsRef<Path<Absolute>> for Cow<'_, CanonicalPath>
impl AsRef<Path<Absolute>> for Cow<'_, CanonicalPath>
source§fn as_ref(&self) -> &AbsolutePath
fn as_ref(&self) -> &AbsolutePath
source§impl AsRef<Path<Absolute>> for Rc<CanonicalPath>
impl AsRef<Path<Absolute>> for Rc<CanonicalPath>
source§fn as_ref(&self) -> &AbsolutePath
fn as_ref(&self) -> &AbsolutePath
source§impl From<Box<Path<Absolute>>> for Box<Path>
impl From<Box<Path<Absolute>>> for Box<Path>
source§fn from(path: Box<AbsolutePath>) -> Self
fn from(path: Box<AbsolutePath>) -> Self
source§impl From<Box<Path<Canonical>>> for Box<Path>
impl From<Box<Path<Canonical>>> for Box<Path>
source§fn from(path: Box<CanonicalPath>) -> Self
fn from(path: Box<CanonicalPath>) -> Self
source§impl From<Box<Path<Relative>>> for Box<Path>
impl From<Box<Path<Relative>>> for Box<Path>
source§fn from(path: Box<RelativePath>) -> Self
fn from(path: Box<RelativePath>) -> Self
source§impl From<Cow<'_, Path<Absolute>>> for Box<Path>
impl From<Cow<'_, Path<Absolute>>> for Box<Path>
source§fn from(cow: Cow<'_, AbsolutePath>) -> Self
fn from(cow: Cow<'_, AbsolutePath>) -> Self
source§impl From<Cow<'_, Path<Canonical>>> for Box<Path>
impl From<Cow<'_, Path<Canonical>>> for Box<Path>
source§fn from(cow: Cow<'_, CanonicalPath>) -> Self
fn from(cow: Cow<'_, CanonicalPath>) -> Self
source§impl From<Cow<'_, Path<Relative>>> for Box<Path>
impl From<Cow<'_, Path<Relative>>> for Box<Path>
source§fn from(cow: Cow<'_, RelativePath>) -> Self
fn from(cow: Cow<'_, RelativePath>) -> Self
source§impl From<PathBuf<Absolute>> for Box<Path>
impl From<PathBuf<Absolute>> for Box<Path>
source§fn from(buf: AbsolutePathBuf) -> Self
fn from(buf: AbsolutePathBuf) -> Self
source§impl From<PathBuf<Canonical>> for Box<Path>
impl From<PathBuf<Canonical>> for Box<Path>
source§fn from(buf: CanonicalPathBuf) -> Self
fn from(buf: CanonicalPathBuf) -> Self
source§impl From<PathBuf<Relative>> for Box<Path>
impl From<PathBuf<Relative>> for Box<Path>
source§fn from(buf: RelativePathBuf) -> Self
fn from(buf: RelativePathBuf) -> Self
source§impl<'a, Form: PathForm> IntoIterator for &'a Path<Form>
impl<'a, Form: PathForm> IntoIterator for &'a Path<Form>
source§impl<'a, Form: PathForm> PartialEq<&'a OsStr> for Path<Form>
impl<'a, Form: PathForm> PartialEq<&'a OsStr> for Path<Form>
source§impl<'a, 'b> PartialEq<&'b Path<Absolute>> for Cow<'a, CanonicalPath>
impl<'a, 'b> PartialEq<&'b Path<Absolute>> for Cow<'a, CanonicalPath>
source§fn eq(&self, other: &&'b AbsolutePath) -> bool
fn eq(&self, other: &&'b AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, 'b> PartialEq<&'b Path<Absolute>> for Cow<'a, Path>
impl<'a, 'b> PartialEq<&'b Path<Absolute>> for Cow<'a, Path>
source§fn eq(&self, other: &&'b AbsolutePath) -> bool
fn eq(&self, other: &&'b AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Absolute>> for Path
impl<'a> PartialEq<&'a Path<Absolute>> for Path
source§fn eq(&self, other: &&'a AbsolutePath) -> bool
fn eq(&self, other: &&'a AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Absolute>> for CanonicalPath
impl<'a> PartialEq<&'a Path<Absolute>> for CanonicalPath
source§fn eq(&self, other: &&'a AbsolutePath) -> bool
fn eq(&self, other: &&'a AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Absolute>> for PathBuf
impl<'a> PartialEq<&'a Path<Absolute>> for PathBuf
source§fn eq(&self, other: &&'a AbsolutePath) -> bool
fn eq(&self, other: &&'a AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Absolute>> for CanonicalPathBuf
impl<'a> PartialEq<&'a Path<Absolute>> for CanonicalPathBuf
source§fn eq(&self, other: &&'a AbsolutePath) -> bool
fn eq(&self, other: &&'a AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, 'b> PartialEq<&'b Path<Canonical>> for Cow<'a, AbsolutePath>
impl<'a, 'b> PartialEq<&'b Path<Canonical>> for Cow<'a, AbsolutePath>
source§fn eq(&self, other: &&'b CanonicalPath) -> bool
fn eq(&self, other: &&'b CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, 'b> PartialEq<&'b Path<Canonical>> for Cow<'a, Path>
impl<'a, 'b> PartialEq<&'b Path<Canonical>> for Cow<'a, Path>
source§fn eq(&self, other: &&'b CanonicalPath) -> bool
fn eq(&self, other: &&'b CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Canonical>> for Path
impl<'a> PartialEq<&'a Path<Canonical>> for Path
source§fn eq(&self, other: &&'a CanonicalPath) -> bool
fn eq(&self, other: &&'a CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Canonical>> for AbsolutePath
impl<'a> PartialEq<&'a Path<Canonical>> for AbsolutePath
source§fn eq(&self, other: &&'a CanonicalPath) -> bool
fn eq(&self, other: &&'a CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Canonical>> for PathBuf
impl<'a> PartialEq<&'a Path<Canonical>> for PathBuf
source§fn eq(&self, other: &&'a CanonicalPath) -> bool
fn eq(&self, other: &&'a CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Canonical>> for AbsolutePathBuf
impl<'a> PartialEq<&'a Path<Canonical>> for AbsolutePathBuf
source§fn eq(&self, other: &&'a CanonicalPath) -> bool
fn eq(&self, other: &&'a CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, 'b, Form: PathForm> PartialEq<&'b Path<Form>> for Cow<'a, Path<Form>>
impl<'a, 'b, Form: PathForm> PartialEq<&'b Path<Form>> for Cow<'a, Path<Form>>
source§impl<'a, 'b, Form: PathForm> PartialEq<&'b Path<Form>> for Cow<'a, Path>
impl<'a, 'b, Form: PathForm> PartialEq<&'b Path<Form>> for Cow<'a, Path>
source§impl<'a, 'b, Form: PathForm> PartialEq<&'a Path<Form>> for Cow<'b, OsStr>
impl<'a, 'b, Form: PathForm> PartialEq<&'a Path<Form>> for Cow<'b, OsStr>
source§impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for OsStr
impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for OsStr
source§impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for OsString
impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for OsString
source§impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for PathBuf
impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for PathBuf
source§impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for PathBuf<Form>
impl<'a, Form: PathForm> PartialEq<&'a Path<Form>> for PathBuf<Form>
source§impl<'a, 'b> PartialEq<&'b Path<Relative>> for Cow<'a, Path>
impl<'a, 'b> PartialEq<&'b Path<Relative>> for Cow<'a, Path>
source§fn eq(&self, other: &&'b RelativePath) -> bool
fn eq(&self, other: &&'b RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Relative>> for Path
impl<'a> PartialEq<&'a Path<Relative>> for Path
source§fn eq(&self, other: &&'a RelativePath) -> bool
fn eq(&self, other: &&'a RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<&'a Path<Relative>> for PathBuf
impl<'a> PartialEq<&'a Path<Relative>> for PathBuf
source§fn eq(&self, other: &&'a RelativePath) -> bool
fn eq(&self, other: &&'a RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, AbsolutePath>
impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, AbsolutePath>
source§impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, CanonicalPath>
impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, CanonicalPath>
source§impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, RelativePath>
impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, RelativePath>
source§impl<'a> PartialEq<&'a Path> for AbsolutePath
impl<'a> PartialEq<&'a Path> for AbsolutePath
source§impl<'a> PartialEq<&'a Path> for CanonicalPath
impl<'a> PartialEq<&'a Path> for CanonicalPath
source§impl<'a> PartialEq<&'a Path> for RelativePath
impl<'a> PartialEq<&'a Path> for RelativePath
source§impl<'a> PartialEq<&'a Path> for AbsolutePathBuf
impl<'a> PartialEq<&'a Path> for AbsolutePathBuf
source§impl<'a> PartialEq<&'a Path> for CanonicalPathBuf
impl<'a> PartialEq<&'a Path> for CanonicalPathBuf
source§impl<'a> PartialEq<&'a Path> for RelativePathBuf
impl<'a> PartialEq<&'a Path> for RelativePathBuf
source§impl<'a, Form: PathForm> PartialEq<Cow<'a, OsStr>> for Path<Form>
impl<'a, Form: PathForm> PartialEq<Cow<'a, OsStr>> for Path<Form>
source§impl<'a, 'b> PartialEq<Cow<'a, Path<Absolute>>> for &'b Path
impl<'a, 'b> PartialEq<Cow<'a, Path<Absolute>>> for &'b Path
source§impl<'a> PartialEq<Cow<'a, Path<Absolute>>> for Path
impl<'a> PartialEq<Cow<'a, Path<Absolute>>> for Path
source§impl<'a, 'b> PartialEq<Cow<'a, Path<Canonical>>> for &'b Path
impl<'a, 'b> PartialEq<Cow<'a, Path<Canonical>>> for &'b Path
source§impl<'a> PartialEq<Cow<'a, Path<Canonical>>> for Path
impl<'a> PartialEq<Cow<'a, Path<Canonical>>> for Path
source§impl<'a, 'b, Form: PathForm> PartialEq<Cow<'a, Path<Form>>> for &'b Path<Form>
impl<'a, 'b, Form: PathForm> PartialEq<Cow<'a, Path<Form>>> for &'b Path<Form>
source§impl<'a, Form: PathForm> PartialEq<Cow<'a, Path<Form>>> for Path<Form>
impl<'a, Form: PathForm> PartialEq<Cow<'a, Path<Form>>> for Path<Form>
source§impl<'a, 'b> PartialEq<Cow<'a, Path<Relative>>> for &'b Path
impl<'a, 'b> PartialEq<Cow<'a, Path<Relative>>> for &'b Path
source§impl<'a> PartialEq<Cow<'a, Path<Relative>>> for Path
impl<'a> PartialEq<Cow<'a, Path<Relative>>> for Path
source§impl<'a, 'b, Form: PathForm> PartialEq<Cow<'a, Path>> for &'b Path<Form>
impl<'a, 'b, Form: PathForm> PartialEq<Cow<'a, Path>> for &'b Path<Form>
source§impl<'a, Form: PathForm> PartialEq<Cow<'a, Path>> for Path<Form>
impl<'a, Form: PathForm> PartialEq<Cow<'a, Path>> for Path<Form>
source§impl<'a, 'b, Form: PathForm> PartialEq<Cow<'b, OsStr>> for &'a Path<Form>
impl<'a, 'b, Form: PathForm> PartialEq<Cow<'b, OsStr>> for &'a Path<Form>
source§impl<'a, Form: PathForm> PartialEq<OsStr> for &'a Path<Form>
impl<'a, Form: PathForm> PartialEq<OsStr> for &'a Path<Form>
source§impl<Form: PathForm> PartialEq<OsStr> for Path<Form>
impl<Form: PathForm> PartialEq<OsStr> for Path<Form>
source§impl<'a, Form: PathForm> PartialEq<OsString> for &'a Path<Form>
impl<'a, Form: PathForm> PartialEq<OsString> for &'a Path<Form>
source§impl<Form: PathForm> PartialEq<OsString> for Path<Form>
impl<Form: PathForm> PartialEq<OsString> for Path<Form>
source§impl<'a> PartialEq<Path<Absolute>> for &'a Path
impl<'a> PartialEq<Path<Absolute>> for &'a Path
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Absolute>> for &'a CanonicalPath
impl<'a> PartialEq<Path<Absolute>> for &'a CanonicalPath
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Absolute>> for Cow<'a, CanonicalPath>
impl<'a> PartialEq<Path<Absolute>> for Cow<'a, CanonicalPath>
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Absolute>> for Cow<'a, Path>
impl<'a> PartialEq<Path<Absolute>> for Cow<'a, Path>
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Absolute>> for Path
impl PartialEq<Path<Absolute>> for Path
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Absolute>> for CanonicalPath
impl PartialEq<Path<Absolute>> for CanonicalPath
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Absolute>> for PathBuf
impl PartialEq<Path<Absolute>> for PathBuf
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Absolute>> for CanonicalPathBuf
impl PartialEq<Path<Absolute>> for CanonicalPathBuf
source§fn eq(&self, other: &AbsolutePath) -> bool
fn eq(&self, other: &AbsolutePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Canonical>> for &'a Path
impl<'a> PartialEq<Path<Canonical>> for &'a Path
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Canonical>> for &'a AbsolutePath
impl<'a> PartialEq<Path<Canonical>> for &'a AbsolutePath
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Canonical>> for Cow<'a, AbsolutePath>
impl<'a> PartialEq<Path<Canonical>> for Cow<'a, AbsolutePath>
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Canonical>> for Cow<'a, Path>
impl<'a> PartialEq<Path<Canonical>> for Cow<'a, Path>
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Canonical>> for Path
impl PartialEq<Path<Canonical>> for Path
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Canonical>> for AbsolutePath
impl PartialEq<Path<Canonical>> for AbsolutePath
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Canonical>> for PathBuf
impl PartialEq<Path<Canonical>> for PathBuf
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Canonical>> for AbsolutePathBuf
impl PartialEq<Path<Canonical>> for AbsolutePathBuf
source§fn eq(&self, other: &CanonicalPath) -> bool
fn eq(&self, other: &CanonicalPath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, Form: PathForm> PartialEq<Path<Form>> for &'a OsStr
impl<'a, Form: PathForm> PartialEq<Path<Form>> for &'a OsStr
source§impl<'a, Form: PathForm> PartialEq<Path<Form>> for Cow<'a, OsStr>
impl<'a, Form: PathForm> PartialEq<Path<Form>> for Cow<'a, OsStr>
source§impl<'a, Form: PathForm> PartialEq<Path<Form>> for Cow<'a, Path<Form>>
impl<'a, Form: PathForm> PartialEq<Path<Form>> for Cow<'a, Path<Form>>
source§impl<'a, Form: PathForm> PartialEq<Path<Form>> for Cow<'a, Path>
impl<'a, Form: PathForm> PartialEq<Path<Form>> for Cow<'a, Path>
source§impl<Form: PathForm> PartialEq<Path<Form>> for OsStr
impl<Form: PathForm> PartialEq<Path<Form>> for OsStr
source§impl<Form: PathForm> PartialEq<Path<Form>> for OsString
impl<Form: PathForm> PartialEq<Path<Form>> for OsString
source§impl<Form: PathForm> PartialEq<Path<Form>> for Path
impl<Form: PathForm> PartialEq<Path<Form>> for Path
source§impl<Form: PathForm> PartialEq<Path<Form>> for PathBuf
impl<Form: PathForm> PartialEq<Path<Form>> for PathBuf
source§impl<Form: PathForm> PartialEq<Path<Form>> for PathBuf<Form>
impl<Form: PathForm> PartialEq<Path<Form>> for PathBuf<Form>
source§impl<'a> PartialEq<Path<Relative>> for &'a Path
impl<'a> PartialEq<Path<Relative>> for &'a Path
source§fn eq(&self, other: &RelativePath) -> bool
fn eq(&self, other: &RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path<Relative>> for Cow<'a, Path>
impl<'a> PartialEq<Path<Relative>> for Cow<'a, Path>
source§fn eq(&self, other: &RelativePath) -> bool
fn eq(&self, other: &RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Relative>> for Path
impl PartialEq<Path<Relative>> for Path
source§fn eq(&self, other: &RelativePath) -> bool
fn eq(&self, other: &RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<Path<Relative>> for PathBuf
impl PartialEq<Path<Relative>> for PathBuf
source§fn eq(&self, other: &RelativePath) -> bool
fn eq(&self, other: &RelativePath) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<Path> for &'a AbsolutePath
impl<'a> PartialEq<Path> for &'a AbsolutePath
source§impl<'a> PartialEq<Path> for &'a CanonicalPath
impl<'a> PartialEq<Path> for &'a CanonicalPath
source§impl<'a> PartialEq<Path> for &'a RelativePath
impl<'a> PartialEq<Path> for &'a RelativePath
source§impl<'a> PartialEq<Path> for Cow<'a, AbsolutePath>
impl<'a> PartialEq<Path> for Cow<'a, AbsolutePath>
source§impl<'a> PartialEq<Path> for Cow<'a, CanonicalPath>
impl<'a> PartialEq<Path> for Cow<'a, CanonicalPath>
source§impl<'a> PartialEq<Path> for Cow<'a, RelativePath>
impl<'a> PartialEq<Path> for Cow<'a, RelativePath>
source§impl PartialEq<Path> for AbsolutePath
impl PartialEq<Path> for AbsolutePath
source§impl PartialEq<Path> for CanonicalPath
impl PartialEq<Path> for CanonicalPath
source§impl<Form: PathForm> PartialEq<Path> for Path<Form>
impl<Form: PathForm> PartialEq<Path> for Path<Form>
source§impl PartialEq<Path> for RelativePath
impl PartialEq<Path> for RelativePath
source§impl PartialEq<Path> for AbsolutePathBuf
impl PartialEq<Path> for AbsolutePathBuf
source§impl PartialEq<Path> for CanonicalPathBuf
impl PartialEq<Path> for CanonicalPathBuf
source§impl PartialEq<Path> for RelativePathBuf
impl PartialEq<Path> for RelativePathBuf
source§impl<'a> PartialEq<PathBuf<Absolute>> for &'a Path
impl<'a> PartialEq<PathBuf<Absolute>> for &'a Path
source§fn eq(&self, other: &AbsolutePathBuf) -> bool
fn eq(&self, other: &AbsolutePathBuf) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<PathBuf<Absolute>> for Path
impl PartialEq<PathBuf<Absolute>> for Path
source§fn eq(&self, other: &AbsolutePathBuf) -> bool
fn eq(&self, other: &AbsolutePathBuf) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a> PartialEq<PathBuf<Canonical>> for &'a Path
impl<'a> PartialEq<PathBuf<Canonical>> for &'a Path
source§fn eq(&self, other: &CanonicalPathBuf) -> bool
fn eq(&self, other: &CanonicalPathBuf) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<PathBuf<Canonical>> for Path
impl PartialEq<PathBuf<Canonical>> for Path
source§fn eq(&self, other: &CanonicalPathBuf) -> bool
fn eq(&self, other: &CanonicalPathBuf) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, Form: PathForm> PartialEq<PathBuf<Form>> for &'a Path<Form>
impl<'a, Form: PathForm> PartialEq<PathBuf<Form>> for &'a Path<Form>
source§impl<Form: PathForm> PartialEq<PathBuf<Form>> for Path<Form>
impl<Form: PathForm> PartialEq<PathBuf<Form>> for Path<Form>
source§impl<'a> PartialEq<PathBuf<Relative>> for &'a Path
impl<'a> PartialEq<PathBuf<Relative>> for &'a Path
source§fn eq(&self, other: &RelativePathBuf) -> bool
fn eq(&self, other: &RelativePathBuf) -> bool
self and other values to be equal, and is used
by ==.source§impl PartialEq<PathBuf<Relative>> for Path
impl PartialEq<PathBuf<Relative>> for Path
source§fn eq(&self, other: &RelativePathBuf) -> bool
fn eq(&self, other: &RelativePathBuf) -> bool
self and other values to be equal, and is used
by ==.source§impl<'a, Form: PathForm> PartialEq<PathBuf> for &'a Path<Form>
impl<'a, Form: PathForm> PartialEq<PathBuf> for &'a Path<Form>
source§impl<Form: PathForm> PartialEq<PathBuf> for Path<Form>
impl<Form: PathForm> PartialEq<PathBuf> for Path<Form>
source§impl<Form: PathForm> PartialEq for Path<Form>
impl<Form: PathForm> PartialEq for Path<Form>
source§impl<'a, Form: PathForm> PartialOrd<&'a OsStr> for Path<Form>
impl<'a, Form: PathForm> PartialOrd<&'a OsStr> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path<Absolute>> for Cow<'a, CanonicalPath>
impl<'a, 'b> PartialOrd<&'b Path<Absolute>> for Cow<'a, CanonicalPath>
source§fn partial_cmp(&self, other: &&'b AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'b AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path<Absolute>> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<&'b Path<Absolute>> for Cow<'a, Path>
source§fn partial_cmp(&self, other: &&'b AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'b AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Absolute>> for Path
impl<'a> PartialOrd<&'a Path<Absolute>> for Path
source§fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Absolute>> for CanonicalPath
impl<'a> PartialOrd<&'a Path<Absolute>> for CanonicalPath
source§fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Absolute>> for PathBuf
impl<'a> PartialOrd<&'a Path<Absolute>> for PathBuf
source§fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Absolute>> for CanonicalPathBuf
impl<'a> PartialOrd<&'a Path<Absolute>> for CanonicalPathBuf
source§fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path<Canonical>> for Cow<'a, AbsolutePath>
impl<'a, 'b> PartialOrd<&'b Path<Canonical>> for Cow<'a, AbsolutePath>
source§fn partial_cmp(&self, other: &&'b CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'b CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path<Canonical>> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<&'b Path<Canonical>> for Cow<'a, Path>
source§fn partial_cmp(&self, other: &&'b CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'b CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Canonical>> for Path
impl<'a> PartialOrd<&'a Path<Canonical>> for Path
source§fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Canonical>> for AbsolutePath
impl<'a> PartialOrd<&'a Path<Canonical>> for AbsolutePath
source§fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Canonical>> for PathBuf
impl<'a> PartialOrd<&'a Path<Canonical>> for PathBuf
source§fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Canonical>> for AbsolutePathBuf
impl<'a> PartialOrd<&'a Path<Canonical>> for AbsolutePathBuf
source§fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b, Form: PathForm> PartialOrd<&'b Path<Form>> for Cow<'a, Path<Form>>
impl<'a, 'b, Form: PathForm> PartialOrd<&'b Path<Form>> for Cow<'a, Path<Form>>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b, Form: PathForm> PartialOrd<&'b Path<Form>> for Cow<'a, Path>
impl<'a, 'b, Form: PathForm> PartialOrd<&'b Path<Form>> for Cow<'a, Path>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b, Form: PathForm> PartialOrd<&'a Path<Form>> for Cow<'b, OsStr>
impl<'a, 'b, Form: PathForm> PartialOrd<&'a Path<Form>> for Cow<'b, OsStr>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for OsStr
impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for OsStr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for OsString
impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for OsString
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for PathBuf
impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for PathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for PathBuf<Form>
impl<'a, Form: PathForm> PartialOrd<&'a Path<Form>> for PathBuf<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path<Relative>> for Cow<'a, Path>
impl<'a, 'b> PartialOrd<&'b Path<Relative>> for Cow<'a, Path>
source§fn partial_cmp(&self, other: &&'b RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'b RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Relative>> for Path
impl<'a> PartialOrd<&'a Path<Relative>> for Path
source§fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path<Relative>> for PathBuf
impl<'a> PartialOrd<&'a Path<Relative>> for PathBuf
source§fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, AbsolutePath>
impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, AbsolutePath>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, CanonicalPath>
impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, CanonicalPath>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, RelativePath>
impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, RelativePath>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path> for AbsolutePath
impl<'a> PartialOrd<&'a Path> for AbsolutePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path> for CanonicalPath
impl<'a> PartialOrd<&'a Path> for CanonicalPath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path> for RelativePath
impl<'a> PartialOrd<&'a Path> for RelativePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path> for AbsolutePathBuf
impl<'a> PartialOrd<&'a Path> for AbsolutePathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path> for CanonicalPathBuf
impl<'a> PartialOrd<&'a Path> for CanonicalPathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<&'a Path> for RelativePathBuf
impl<'a> PartialOrd<&'a Path> for RelativePathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Cow<'a, OsStr>> for Path<Form>
impl<'a, Form: PathForm> PartialOrd<Cow<'a, OsStr>> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<Cow<'a, Path<Absolute>>> for &'b Path
impl<'a, 'b> PartialOrd<Cow<'a, Path<Absolute>>> for &'b Path
source§fn partial_cmp(&self, other: &Cow<'a, AbsolutePath>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cow<'a, AbsolutePath>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Cow<'a, Path<Absolute>>> for Path
impl<'a> PartialOrd<Cow<'a, Path<Absolute>>> for Path
source§fn partial_cmp(&self, other: &Cow<'a, AbsolutePath>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cow<'a, AbsolutePath>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<Cow<'a, Path<Canonical>>> for &'b Path
impl<'a, 'b> PartialOrd<Cow<'a, Path<Canonical>>> for &'b Path
source§fn partial_cmp(&self, other: &Cow<'a, CanonicalPath>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cow<'a, CanonicalPath>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Cow<'a, Path<Canonical>>> for Path
impl<'a> PartialOrd<Cow<'a, Path<Canonical>>> for Path
source§fn partial_cmp(&self, other: &Cow<'a, CanonicalPath>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cow<'a, CanonicalPath>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b, Form: PathForm> PartialOrd<Cow<'a, Path<Form>>> for &'b Path<Form>
impl<'a, 'b, Form: PathForm> PartialOrd<Cow<'a, Path<Form>>> for &'b Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Cow<'a, Path<Form>>> for Path<Form>
impl<'a, Form: PathForm> PartialOrd<Cow<'a, Path<Form>>> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b> PartialOrd<Cow<'a, Path<Relative>>> for &'b Path
impl<'a, 'b> PartialOrd<Cow<'a, Path<Relative>>> for &'b Path
source§fn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Cow<'a, Path<Relative>>> for Path
impl<'a> PartialOrd<Cow<'a, Path<Relative>>> for Path
source§fn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>
fn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b, Form: PathForm> PartialOrd<Cow<'a, Path>> for &'b Path<Form>
impl<'a, 'b, Form: PathForm> PartialOrd<Cow<'a, Path>> for &'b Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Cow<'a, Path>> for Path<Form>
impl<'a, Form: PathForm> PartialOrd<Cow<'a, Path>> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, 'b, Form: PathForm> PartialOrd<Cow<'b, OsStr>> for &'a Path<Form>
impl<'a, 'b, Form: PathForm> PartialOrd<Cow<'b, OsStr>> for &'a Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<OsStr> for &'a Path<Form>
impl<'a, Form: PathForm> PartialOrd<OsStr> for &'a Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<OsStr> for Path<Form>
impl<Form: PathForm> PartialOrd<OsStr> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<OsString> for &'a Path<Form>
impl<'a, Form: PathForm> PartialOrd<OsString> for &'a Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<OsString> for Path<Form>
impl<Form: PathForm> PartialOrd<OsString> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Absolute>> for &'a Path
impl<'a> PartialOrd<Path<Absolute>> for &'a Path
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Absolute>> for &'a CanonicalPath
impl<'a> PartialOrd<Path<Absolute>> for &'a CanonicalPath
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Absolute>> for Cow<'a, CanonicalPath>
impl<'a> PartialOrd<Path<Absolute>> for Cow<'a, CanonicalPath>
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Absolute>> for Cow<'a, Path>
impl<'a> PartialOrd<Path<Absolute>> for Cow<'a, Path>
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Absolute>> for Path
impl PartialOrd<Path<Absolute>> for Path
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Absolute>> for CanonicalPath
impl PartialOrd<Path<Absolute>> for CanonicalPath
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Absolute>> for PathBuf
impl PartialOrd<Path<Absolute>> for PathBuf
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Absolute>> for CanonicalPathBuf
impl PartialOrd<Path<Absolute>> for CanonicalPathBuf
source§fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Canonical>> for &'a Path
impl<'a> PartialOrd<Path<Canonical>> for &'a Path
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Canonical>> for &'a AbsolutePath
impl<'a> PartialOrd<Path<Canonical>> for &'a AbsolutePath
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Canonical>> for Cow<'a, AbsolutePath>
impl<'a> PartialOrd<Path<Canonical>> for Cow<'a, AbsolutePath>
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Canonical>> for Cow<'a, Path>
impl<'a> PartialOrd<Path<Canonical>> for Cow<'a, Path>
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Canonical>> for Path
impl PartialOrd<Path<Canonical>> for Path
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Canonical>> for AbsolutePath
impl PartialOrd<Path<Canonical>> for AbsolutePath
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Canonical>> for PathBuf
impl PartialOrd<Path<Canonical>> for PathBuf
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Canonical>> for AbsolutePathBuf
impl PartialOrd<Path<Canonical>> for AbsolutePathBuf
source§fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Path<Form>> for &'a OsStr
impl<'a, Form: PathForm> PartialOrd<Path<Form>> for &'a OsStr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Path<Form>> for Cow<'a, OsStr>
impl<'a, Form: PathForm> PartialOrd<Path<Form>> for Cow<'a, OsStr>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Path<Form>> for Cow<'a, Path<Form>>
impl<'a, Form: PathForm> PartialOrd<Path<Form>> for Cow<'a, Path<Form>>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<Path<Form>> for Cow<'a, Path>
impl<'a, Form: PathForm> PartialOrd<Path<Form>> for Cow<'a, Path>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<Path<Form>> for OsStr
impl<Form: PathForm> PartialOrd<Path<Form>> for OsStr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<Path<Form>> for OsString
impl<Form: PathForm> PartialOrd<Path<Form>> for OsString
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<Path<Form>> for Path
impl<Form: PathForm> PartialOrd<Path<Form>> for Path
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<Path<Form>> for PathBuf
impl<Form: PathForm> PartialOrd<Path<Form>> for PathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<Path<Form>> for PathBuf<Form>
impl<Form: PathForm> PartialOrd<Path<Form>> for PathBuf<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Relative>> for &'a Path
impl<'a> PartialOrd<Path<Relative>> for &'a Path
source§fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path<Relative>> for Cow<'a, Path>
impl<'a> PartialOrd<Path<Relative>> for Cow<'a, Path>
source§fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Relative>> for Path
impl PartialOrd<Path<Relative>> for Path
source§fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path<Relative>> for PathBuf
impl PartialOrd<Path<Relative>> for PathBuf
source§fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path> for &'a AbsolutePath
impl<'a> PartialOrd<Path> for &'a AbsolutePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path> for &'a CanonicalPath
impl<'a> PartialOrd<Path> for &'a CanonicalPath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path> for &'a RelativePath
impl<'a> PartialOrd<Path> for &'a RelativePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path> for Cow<'a, AbsolutePath>
impl<'a> PartialOrd<Path> for Cow<'a, AbsolutePath>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path> for Cow<'a, CanonicalPath>
impl<'a> PartialOrd<Path> for Cow<'a, CanonicalPath>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<Path> for Cow<'a, RelativePath>
impl<'a> PartialOrd<Path> for Cow<'a, RelativePath>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path> for AbsolutePath
impl PartialOrd<Path> for AbsolutePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path> for CanonicalPath
impl PartialOrd<Path> for CanonicalPath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<Path> for Path<Form>
impl<Form: PathForm> PartialOrd<Path> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path> for RelativePath
impl PartialOrd<Path> for RelativePath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path> for AbsolutePathBuf
impl PartialOrd<Path> for AbsolutePathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path> for CanonicalPathBuf
impl PartialOrd<Path> for CanonicalPathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<Path> for RelativePathBuf
impl PartialOrd<Path> for RelativePathBuf
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<PathBuf<Absolute>> for &'a Path
impl<'a> PartialOrd<PathBuf<Absolute>> for &'a Path
source§fn partial_cmp(&self, other: &AbsolutePathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePathBuf) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<PathBuf<Absolute>> for Path
impl PartialOrd<PathBuf<Absolute>> for Path
source§fn partial_cmp(&self, other: &AbsolutePathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &AbsolutePathBuf) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<PathBuf<Canonical>> for &'a Path
impl<'a> PartialOrd<PathBuf<Canonical>> for &'a Path
source§fn partial_cmp(&self, other: &CanonicalPathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPathBuf) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<PathBuf<Canonical>> for Path
impl PartialOrd<PathBuf<Canonical>> for Path
source§fn partial_cmp(&self, other: &CanonicalPathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &CanonicalPathBuf) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<PathBuf<Form>> for &'a Path<Form>
impl<'a, Form: PathForm> PartialOrd<PathBuf<Form>> for &'a Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<PathBuf<Form>> for Path<Form>
impl<Form: PathForm> PartialOrd<PathBuf<Form>> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a> PartialOrd<PathBuf<Relative>> for &'a Path
impl<'a> PartialOrd<PathBuf<Relative>> for &'a Path
source§fn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl PartialOrd<PathBuf<Relative>> for Path
impl PartialOrd<PathBuf<Relative>> for Path
source§fn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>
fn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<'a, Form: PathForm> PartialOrd<PathBuf> for &'a Path<Form>
impl<'a, Form: PathForm> PartialOrd<PathBuf> for &'a Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd<PathBuf> for Path<Form>
impl<Form: PathForm> PartialOrd<PathBuf> for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl<Form: PathForm> PartialOrd for Path<Form>
impl<Form: PathForm> PartialOrd for Path<Form>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read more