Struct sgx_tstd::path::Path [−][src]
pub struct Path { /* fields omitted */ }A slice of a path (akin to str).
This type supports a number of operations for inspecting a path, including
breaking the path into its components (separated by / or \, depending on
the platform), extracting the file name, determining whether the path is
absolute, and so on.
This is an unsized type, meaning that it must always be used behind a
pointer like & or Box. For an owned version of this type,
see PathBuf.
More details about the overall approach can be found in the module documentation.
Methods
impl Path[src]
impl Pathpub fn new<S: AsRef<OsStr> + ?Sized>(s: &S) -> &Path[src]
pub fn new<S: AsRef<OsStr> + ?Sized>(s: &S) -> &PathDirectly wraps a string slice as a Path slice.
This is a cost-free conversion.
pub fn as_os_str(&self) -> &OsStr[src]
pub fn as_os_str(&self) -> &OsStrYields the underlying OsStr slice.
pub fn to_str(&self) -> Option<&str>[src]
pub fn to_str(&self) -> Option<&str>Yields a &str slice if the Path is valid unicode.
This conversion may entail doing a check for UTF-8 validity.
pub fn to_string_lossy(&self) -> Cow<str>[src]
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.
pub fn to_path_buf(&self) -> PathBuf[src]
pub fn to_path_buf(&self) -> PathBufConverts a Path to an owned PathBuf.
pub fn is_absolute(&self) -> bool[src]
pub fn is_absolute(&self) -> boolReturns 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_absoluteand [has_root] are equivalent. -
On Windows, a path is absolute if it has a prefix and starts with the root:
c:\windowsis absolute, whilec:tempand\tempare not.
pub fn is_relative(&self) -> bool[src]
pub fn is_relative(&self) -> boolReturn false if the Path is relative, i.e. not absolute.
See [is_absolute]'s documentation for more details.
pub fn has_root(&self) -> bool[src]
pub fn has_root(&self) -> boolReturns true if the Path has a root.
-
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.
pub fn parent(&self) -> Option<&Path>[src]
pub fn parent(&self) -> Option<&Path>Returns the Path without its final component, if there is one.
Returns None if the path terminates in a root or prefix.
ⓘImportant traits for Ancestors<'a>pub fn ancestors(&self) -> Ancestors[src]
pub fn ancestors(&self) -> AncestorsProduces an iterator over 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.
pub fn file_name(&self) -> Option<&OsStr>[src]
pub fn file_name(&self) -> Option<&OsStr>Returns the final component of the 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 ...
pub fn strip_prefix<'a, P: ?Sized>(
&'a self,
base: &'a P
) -> Result<&'a Path, StripPrefixError> where
P: AsRef<Path>, [src]
pub fn strip_prefix<'a, P: ?Sized>(
&'a self,
base: &'a P
) -> Result<&'a Path, StripPrefixError> where
P: AsRef<Path>, Returns a path that, when joined onto base, yields self.
Errors
If base is not a prefix of self (i.e. starts_with
returns false), returns Err.
pub fn starts_with<P: AsRef<Path>>(&self, base: P) -> bool[src]
pub fn starts_with<P: AsRef<Path>>(&self, base: P) -> boolDetermines whether base is a prefix of self.
Only considers whole path components to match.
pub fn ends_with<P: AsRef<Path>>(&self, child: P) -> bool[src]
pub fn ends_with<P: AsRef<Path>>(&self, child: P) -> boolDetermines whether child is a suffix of self.
Only considers whole path components to match.
pub fn file_stem(&self) -> Option<&OsStr>[src]
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
.
pub fn extension(&self) -> Option<&OsStr>[src]
pub fn extension(&self) -> Option<&OsStr>Extracts the extension of self.file_name, if possible.
The extension is:
pub fn join<P: AsRef<Path>>(&self, path: P) -> PathBuf[src]
pub fn join<P: AsRef<Path>>(&self, path: P) -> PathBufCreates an owned PathBuf with path adjoined to self.
See PathBuf::push for more details on what it means to adjoin a path.
pub fn with_file_name<S: AsRef<OsStr>>(&self, file_name: S) -> PathBuf[src]
pub fn with_file_name<S: AsRef<OsStr>>(&self, file_name: S) -> PathBufCreates an owned PathBuf like self but with the given file name.
See PathBuf::set_file_name for more details.
pub fn with_extension<S: AsRef<OsStr>>(&self, extension: S) -> PathBuf[src]
pub fn with_extension<S: AsRef<OsStr>>(&self, extension: S) -> PathBufCreates an owned PathBuf like self but with the given extension.
See PathBuf::set_extension for more details.
ⓘImportant traits for Components<'a>pub fn components(&self) -> Components[src]
pub fn components(&self) -> ComponentsProduces 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. -
Occurentces of
.are normalized away, exept 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 additional [CurDir] component.
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).
ⓘImportant traits for Iter<'a>pub fn iter(&self) -> Iter[src]
pub fn iter(&self) -> IterProduces 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.
pub fn display(&self) -> Display[src]
pub fn display(&self) -> DisplayReturns an object that implements Display for safely printing paths
that may contain non-Unicode data.
pub fn into_path_buf(self: Box<Path>) -> PathBuf[src]
pub fn into_path_buf(self: Box<Path>) -> PathBufTrait Implementations
impl<'a> AsRef<Path> for Component<'a>[src]
impl<'a> AsRef<Path> for Component<'a>impl<'a> AsRef<Path> for Components<'a>[src]
impl<'a> AsRef<Path> for Components<'a>impl<'a> AsRef<Path> for Iter<'a>[src]
impl<'a> AsRef<Path> for Iter<'a>impl<'a> From<&'a Path> for Box<Path>[src]
impl<'a> From<&'a Path> for Box<Path>impl Borrow<Path> for PathBuf[src]
impl Borrow<Path> for PathBufimpl<'a> From<&'a Path> for Cow<'a, Path>[src]
impl<'a> From<&'a Path> for Cow<'a, Path>impl<'a> From<&'a Path> for Arc<Path>[src]
impl<'a> From<&'a Path> for Arc<Path>impl<'a> From<&'a Path> for Rc<Path>[src]
impl<'a> From<&'a Path> for Rc<Path>impl ToOwned for Path[src]
impl ToOwned for Pathtype Owned = PathBuf
fn to_owned(&self) -> PathBuf[src]
fn to_owned(&self) -> PathBufCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut PathBuf)[src]
fn clone_into(&self, target: &mut PathBuf)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl AsRef<OsStr> for Path[src]
impl AsRef<OsStr> for Pathimpl Debug for Path[src]
impl Debug for Pathfn fmt(&self, formatter: &mut Formatter) -> Result[src]
fn fmt(&self, formatter: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Path[src]
impl PartialEq for Pathfn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Hash for Path[src]
impl Hash for Pathfn hash<H: Hasher>(&self, h: &mut H)[src]
fn hash<H: Hasher>(&self, h: &mut H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Eq for Path[src]
impl Eq for Pathimpl PartialOrd for Path[src]
impl PartialOrd for Pathfn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for Path[src]
impl Ord for Pathfn cmp(&self, other: &Path) -> Ordering[src]
fn cmp(&self, other: &Path) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl AsRef<Path> for Path[src]
impl AsRef<Path> for Pathimpl AsRef<Path> for OsStr[src]
impl AsRef<Path> for OsStrimpl<'a> AsRef<Path> for Cow<'a, OsStr>[src]
impl<'a> AsRef<Path> for Cow<'a, OsStr>impl AsRef<Path> for OsString[src]
impl AsRef<Path> for OsStringimpl AsRef<Path> for str[src]
impl AsRef<Path> for strimpl AsRef<Path> for String[src]
impl AsRef<Path> for Stringimpl AsRef<Path> for PathBuf[src]
impl AsRef<Path> for PathBufimpl<'a> IntoIterator for &'a Path[src]
impl<'a> IntoIterator for &'a Pathtype Item = &'a OsStr
The type of the elements being iterated over.
type IntoIter = Iter<'a>
Which kind of iterator are we turning this into?
ⓘImportant traits for Iter<'a>fn into_iter(self) -> Iter<'a>[src]
fn into_iter(self) -> Iter<'a>Creates an iterator from a value. Read more
impl<'a, 'b> PartialEq<Path> for PathBuf[src]
impl<'a, 'b> PartialEq<Path> for PathBuffn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<PathBuf> for Path[src]
impl<'a, 'b> PartialEq<PathBuf> for Pathfn eq(&self, other: &PathBuf) -> bool[src]
fn eq(&self, other: &PathBuf) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<Path> for PathBuf[src]
impl<'a, 'b> PartialOrd<Path> for PathBuffn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<PathBuf> for Path[src]
impl<'a, 'b> PartialOrd<PathBuf> for Pathfn partial_cmp(&self, other: &PathBuf) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &PathBuf) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<&'a Path> for PathBuf[src]
impl<'a, 'b> PartialEq<&'a Path> for PathBuffn eq(&self, other: &&'a Path) -> bool[src]
fn eq(&self, other: &&'a Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<PathBuf> for &'a Path[src]
impl<'a, 'b> PartialEq<PathBuf> for &'a Pathfn eq(&self, other: &PathBuf) -> bool[src]
fn eq(&self, other: &PathBuf) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<&'a Path> for PathBuf[src]
impl<'a, 'b> PartialOrd<&'a Path> for PathBuffn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<PathBuf> for &'a Path[src]
impl<'a, 'b> PartialOrd<PathBuf> for &'a Pathfn partial_cmp(&self, other: &PathBuf) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &PathBuf) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<Path> for Cow<'a, Path>[src]
impl<'a, 'b> PartialEq<Path> for Cow<'a, Path>fn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'a, Path>> for Path[src]
impl<'a, 'b> PartialEq<Cow<'a, Path>> for Pathfn eq(&self, other: &Cow<'a, Path>) -> bool[src]
fn eq(&self, other: &Cow<'a, Path>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<Path> for Cow<'a, Path>[src]
impl<'a, 'b> PartialOrd<Path> for Cow<'a, Path>fn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for Path[src]
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for Pathfn partial_cmp(&self, other: &Cow<'a, Path>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cow<'a, Path>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, Path>[src]
impl<'a, 'b> PartialEq<&'b Path> for Cow<'a, Path>fn eq(&self, other: &&'b Path) -> bool[src]
fn eq(&self, other: &&'b Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'a, Path>> for &'b Path[src]
impl<'a, 'b> PartialEq<Cow<'a, Path>> for &'b Pathfn eq(&self, other: &Cow<'a, Path>) -> bool[src]
fn eq(&self, other: &Cow<'a, Path>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, Path>[src]
impl<'a, 'b> PartialOrd<&'b Path> for Cow<'a, Path>fn partial_cmp(&self, other: &&'b Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'b Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for &'b Path[src]
impl<'a, 'b> PartialOrd<Cow<'a, Path>> for &'b Pathfn partial_cmp(&self, other: &Cow<'a, Path>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cow<'a, Path>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<OsStr> for Path[src]
impl<'a, 'b> PartialEq<OsStr> for Pathfn eq(&self, other: &OsStr) -> bool[src]
fn eq(&self, other: &OsStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Path> for OsStr[src]
impl<'a, 'b> PartialEq<Path> for OsStrfn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<OsStr> for Path[src]
impl<'a, 'b> PartialOrd<OsStr> for Pathfn partial_cmp(&self, other: &OsStr) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &OsStr) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<Path> for OsStr[src]
impl<'a, 'b> PartialOrd<Path> for OsStrfn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<&'a OsStr> for Path[src]
impl<'a, 'b> PartialEq<&'a OsStr> for Pathfn eq(&self, other: &&'a OsStr) -> bool[src]
fn eq(&self, other: &&'a OsStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Path> for &'a OsStr[src]
impl<'a, 'b> PartialEq<Path> for &'a OsStrfn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<&'a OsStr> for Path[src]
impl<'a, 'b> PartialOrd<&'a OsStr> for Pathfn partial_cmp(&self, other: &&'a OsStr) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a OsStr) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<Path> for &'a OsStr[src]
impl<'a, 'b> PartialOrd<Path> for &'a OsStrfn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for Path[src]
impl<'a, 'b> PartialEq<Cow<'a, OsStr>> for Pathfn eq(&self, other: &Cow<'a, OsStr>) -> bool[src]
fn eq(&self, other: &Cow<'a, OsStr>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Path> for Cow<'a, OsStr>[src]
impl<'a, 'b> PartialEq<Path> for Cow<'a, OsStr>fn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for Path[src]
impl<'a, 'b> PartialOrd<Cow<'a, OsStr>> for Pathfn partial_cmp(&self, other: &Cow<'a, OsStr>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cow<'a, OsStr>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<Path> for Cow<'a, OsStr>[src]
impl<'a, 'b> PartialOrd<Path> for Cow<'a, OsStr>fn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<OsString> for Path[src]
impl<'a, 'b> PartialEq<OsString> for Pathfn eq(&self, other: &OsString) -> bool[src]
fn eq(&self, other: &OsString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Path> for OsString[src]
impl<'a, 'b> PartialEq<Path> for OsStringfn eq(&self, other: &Path) -> bool[src]
fn eq(&self, other: &Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<OsString> for Path[src]
impl<'a, 'b> PartialOrd<OsString> for Pathfn partial_cmp(&self, other: &OsString) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &OsString) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<Path> for OsString[src]
impl<'a, 'b> PartialOrd<Path> for OsStringfn partial_cmp(&self, other: &Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<OsStr> for &'a Path[src]
impl<'a, 'b> PartialEq<OsStr> for &'a Pathfn eq(&self, other: &OsStr) -> bool[src]
fn eq(&self, other: &OsStr) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a Path> for OsStr[src]
impl<'a, 'b> PartialEq<&'a Path> for OsStrfn eq(&self, other: &&'a Path) -> bool[src]
fn eq(&self, other: &&'a Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<OsStr> for &'a Path[src]
impl<'a, 'b> PartialOrd<OsStr> for &'a Pathfn partial_cmp(&self, other: &OsStr) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &OsStr) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<&'a Path> for OsStr[src]
impl<'a, 'b> PartialOrd<&'a Path> for OsStrfn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<Cow<'b, OsStr>> for &'a Path[src]
impl<'a, 'b> PartialEq<Cow<'b, OsStr>> for &'a Pathfn eq(&self, other: &Cow<'b, OsStr>) -> bool[src]
fn eq(&self, other: &Cow<'b, OsStr>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a Path> for Cow<'b, OsStr>[src]
impl<'a, 'b> PartialEq<&'a Path> for Cow<'b, OsStr>fn eq(&self, other: &&'a Path) -> bool[src]
fn eq(&self, other: &&'a Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<Cow<'b, OsStr>> for &'a Path[src]
impl<'a, 'b> PartialOrd<Cow<'b, OsStr>> for &'a Pathfn partial_cmp(&self, other: &Cow<'b, OsStr>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cow<'b, OsStr>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<&'a Path> for Cow<'b, OsStr>[src]
impl<'a, 'b> PartialOrd<&'a Path> for Cow<'b, OsStr>fn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialEq<OsString> for &'a Path[src]
impl<'a, 'b> PartialEq<OsString> for &'a Pathfn eq(&self, other: &OsString) -> bool[src]
fn eq(&self, other: &OsString) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a Path> for OsString[src]
impl<'a, 'b> PartialEq<&'a Path> for OsStringfn eq(&self, other: &&'a Path) -> bool[src]
fn eq(&self, other: &&'a Path) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<OsString> for &'a Path[src]
impl<'a, 'b> PartialOrd<OsString> for &'a Pathfn partial_cmp(&self, other: &OsString) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &OsString) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a, 'b> PartialOrd<&'a Path> for OsString[src]
impl<'a, 'b> PartialOrd<&'a Path> for OsStringfn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a Path) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn le(&self, other: &Rhs) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ge(&self, other: &Rhs) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PathEx for Path[src]
impl PathEx for Pathfn metadata(&self) -> Result<Metadata>[src]
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 fs::metadata.
fn symlink_metadata(&self) -> Result<Metadata>[src]
fn symlink_metadata(&self) -> Result<Metadata>Queries the metadata about a file without following symlinks.
This is an alias to fs::symlink_metadata.
fn canonicalize(&self) -> Result<PathBuf>[src]
fn canonicalize(&self) -> Result<PathBuf>Returns the canonical form of the path with all intermediate components normalized and symbolic links resolved.
This is an alias to fs::canonicalize.
fn read_link(&self) -> Result<PathBuf>[src]
fn read_link(&self) -> Result<PathBuf>Reads a symbolic link, returning the file that the link points to.
This is an alias to fs::read_link.
fn exists(&self) -> bool[src]
fn exists(&self) -> boolReturns whether 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 false.
If you cannot access the directory containing the file, e.g. because of a
permission error, this will return false.
fn is_file(&self) -> bool[src]
fn is_file(&self) -> boolReturns whether 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. In case of broken symbolic links this will return false.
If you cannot access the directory containing the file, e.g. because of a
permission error, this will return false.
fn is_dir(&self) -> bool[src]
fn is_dir(&self) -> boolReturns whether the path exists on disk and is pointing at a directory.
This function will traverse symbolic links to query information about the
destination file. In case of broken symbolic links this will return false.
If you cannot access the directory containing the file, e.g. because of a
permission error, this will return false.