Struct relative_path::RelativePath [−][src]
pub struct RelativePath { /* fields omitted */ }A borrowed, immutable relative path.
Methods
impl RelativePath[src]
impl RelativePathpub fn new<S: AsRef<str> + ?Sized>(s: &S) -> &RelativePath[src]
pub fn new<S: AsRef<str> + ?Sized>(s: &S) -> &RelativePathDirectly wraps a string slice as a RelativePath slice.
pub fn from_path<'a, P: ?Sized + AsRef<Path>>(
path: &'a P
) -> Result<&'a RelativePath, FromPathError>[src]
pub fn from_path<'a, P: ?Sized + AsRef<Path>>(
path: &'a P
) -> Result<&'a RelativePath, FromPathError>Try to convert a Path to a RelativePath without allocating a buffer.
This requires the Path to be a legal, platform-neutral relative path.
Examples
use relative_path::{RelativePath, FromPathErrorKind}; use std::path::Path; use std::ffi::OsStr; assert_eq!( Ok(RelativePath::new("foo/bar")), RelativePath::from_path("foo/bar") );
pub fn as_str(&self) -> &str[src]
pub fn as_str(&self) -> &strYields the underlying str slice.
Examples
use relative_path::RelativePath; assert_eq!(RelativePath::new("foo.txt").as_str(), "foo.txt");
pub fn display(&self) -> Display[src]
pub fn display(&self) -> DisplayReturns an object that implements Display.
Examples
use relative_path::RelativePath; let path = RelativePath::new("tmp/foo.rs"); println!("{}", path.display());
pub fn join<P: AsRef<RelativePath>>(&self, path: P) -> RelativePathBuf[src]
pub fn join<P: AsRef<RelativePath>>(&self, path: P) -> RelativePathBufCreates an owned RelativePathBuf with path adjoined to self.
Examples
use relative_path::RelativePath; let path = RelativePath::new("foo/bar"); assert_eq!("foo/bar/baz", path.join("baz"));
ⓘImportant traits for Components<'a>pub fn components(&self) -> Components[src]
pub fn components(&self) -> ComponentsIterate over all components in this relative path.
Examples
use relative_path::{Component, RelativePath}; let path = RelativePath::new("foo/bar/baz"); let mut it = path.components(); assert_eq!(Some(Component::Normal("foo")), it.next()); assert_eq!(Some(Component::Normal("bar")), it.next()); assert_eq!(Some(Component::Normal("baz")), it.next()); assert_eq!(None, it.next());
ⓘ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 str
slices.
For more information about the particulars of how the path is separated
into components, see components.
Examples
use relative_path::RelativePath; let mut it = RelativePath::new("/tmp/foo.txt").iter(); assert_eq!(it.next(), Some("tmp")); assert_eq!(it.next(), Some("foo.txt")); assert_eq!(it.next(), None)
pub fn to_relative_path_buf(&self) -> RelativePathBuf[src]
pub fn to_relative_path_buf(&self) -> RelativePathBufConvert to an owned RelativePathBuf.
pub fn to_path<P: AsRef<Path>>(&self, relative_to: P) -> PathBuf[src]
pub fn to_path<P: AsRef<Path>>(&self, relative_to: P) -> PathBufBuild an owned PathBuf relative to path for the current relative path.
Examples
use relative_path::RelativePath; use std::path::Path; let path = RelativePath::new("foo/bar").to_path(Path::new(".")); assert_eq!(Path::new("./foo/bar"), path);
pub fn parent(&self) -> Option<&RelativePath>[src]
pub fn parent(&self) -> Option<&RelativePath>Returns a relative path, without its final component if there is one.
Examples
use relative_path::RelativePath; assert_eq!(Some(RelativePath::new("foo")), RelativePath::new("foo/bar").parent()); assert_eq!(None, RelativePath::new("foo").parent()); assert_eq!(None, RelativePath::new("").parent());
pub fn file_name(&self) -> Option<&str>[src]
pub fn file_name(&self) -> Option<&str>Returns the final component of the RelativePath, 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 relative_path::RelativePath; assert_eq!(Some("bin"), RelativePath::new("usr/bin/").file_name()); assert_eq!(Some("foo.txt"), RelativePath::new("tmp/foo.txt").file_name()); assert_eq!(Some("foo.txt"), RelativePath::new("tmp/foo.txt/").file_name()); assert_eq!(Some("foo.txt"), RelativePath::new("foo.txt/.").file_name()); assert_eq!(Some("foo.txt"), RelativePath::new("foo.txt/.//").file_name()); assert_eq!(None, RelativePath::new("foo.txt/..").file_name()); assert_eq!(None, RelativePath::new("/").file_name());
pub fn strip_prefix<'a, P: ?Sized>(
&'a self,
base: &'a P
) -> Result<&'a RelativePath, StripPrefixError> where
P: AsRef<RelativePath>, [src]
pub fn strip_prefix<'a, P: ?Sized>(
&'a self,
base: &'a P
) -> Result<&'a RelativePath, StripPrefixError> where
P: AsRef<RelativePath>, Returns a relative 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.
Examples
use relative_path::RelativePath; let path = RelativePath::new("test/haha/foo.txt"); assert_eq!(path.strip_prefix("test"), Ok(RelativePath::new("haha/foo.txt"))); assert_eq!(path.strip_prefix("test").is_ok(), true); assert_eq!(path.strip_prefix("haha").is_ok(), false);
pub fn starts_with<P: AsRef<RelativePath>>(&self, base: P) -> bool[src]
pub fn starts_with<P: AsRef<RelativePath>>(&self, base: P) -> boolDetermines whether base is a prefix of self.
Only considers whole path components to match.
Examples
use relative_path::RelativePath; let path = RelativePath::new("etc/passwd"); assert!(path.starts_with("etc")); assert!(!path.starts_with("e"));
pub fn ends_with<P: AsRef<RelativePath>>(&self, child: P) -> bool[src]
pub fn ends_with<P: AsRef<RelativePath>>(&self, child: P) -> boolDetermines whether child is a suffix of self.
Only considers whole path components to match.
Examples
use relative_path::RelativePath; let path = RelativePath::new("etc/passwd"); assert!(path.ends_with("passwd"));
pub fn with_file_name<S: AsRef<str>>(&self, file_name: S) -> RelativePathBuf[src]
pub fn with_file_name<S: AsRef<str>>(&self, file_name: S) -> RelativePathBufCreates an owned RelativePathBuf like self but with the given file name.
See RelativePathBuf::set_file_name for more details.
Examples
use relative_path::{RelativePath, RelativePathBuf}; let path = RelativePath::new("tmp/foo.txt"); assert_eq!(path.with_file_name("bar.txt"), RelativePathBuf::from("tmp/bar.txt")); let path = RelativePath::new("tmp"); assert_eq!(path.with_file_name("var"), RelativePathBuf::from("var"));
pub fn file_stem(&self) -> Option<&str>[src]
pub fn file_stem(&self) -> Option<&str>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 relative_path::RelativePath; let path = RelativePath::new("foo.rs"); assert_eq!("foo", path.file_stem().unwrap());
pub fn extension(&self) -> Option<&str>[src]
pub fn extension(&self) -> Option<&str>Extracts the extension 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 relative_path::RelativePath; assert_eq!(Some("rs"), RelativePath::new("foo.rs").extension()); assert_eq!(None, RelativePath::new(".rs").extension()); assert_eq!(Some("rs"), RelativePath::new("foo.rs/.").extension());
pub fn with_extension<S: AsRef<str>>(&self, extension: S) -> RelativePathBuf[src]
pub fn with_extension<S: AsRef<str>>(&self, extension: S) -> RelativePathBufCreates an owned RelativePathBuf like self but with the given extension.
See RelativePathBuf::set_extension for more details.
Examples
use relative_path::{RelativePath, RelativePathBuf}; let path = RelativePath::new("foo.rs"); assert_eq!(path.with_extension("txt"), RelativePathBuf::from("foo.txt"));
pub fn join_normalized<P: AsRef<RelativePath>>(
&self,
path: P
) -> RelativePathBuf[src]
pub fn join_normalized<P: AsRef<RelativePath>>(
&self,
path: P
) -> RelativePathBufBuild an owned RelativePathBuf, joined with the given path and normalized.
Examples
use relative_path::RelativePath; assert_eq!( RelativePath::new("foo/baz.txt"), RelativePath::new("foo/bar").join_normalized("../baz.txt").as_relative_path() ); assert_eq!( RelativePath::new("../foo/baz.txt"), RelativePath::new("../foo/bar").join_normalized("../baz.txt").as_relative_path() );
pub fn normalize(&self) -> RelativePathBuf[src]
pub fn normalize(&self) -> RelativePathBufReturn an owned RelativePathBuf, with all non-normal components moved to the beginning of
the path.
This permits for a normalized representation of different relative components.
Normalization is a destructive operation if the path references an actual filesystem
path.
An example of this is symlinks under unix, a path like foo/../bar might reference a
different location other than ./bar.
Normalization is a logical operation that is only valid if the relative path is part of some context which doesn't have semantics that causes it to break, like symbolic links.
Examples
use relative_path::RelativePath; assert_eq!( RelativePath::new("../foo/baz.txt"), RelativePath::new("../foo/./bar/../baz.txt").normalize().as_relative_path() );
Trait Implementations
impl<'a> From<&'a RelativePath> for Cow<'a, RelativePath>[src]
impl<'a> From<&'a RelativePath> for Cow<'a, RelativePath>fn from(s: &'a RelativePath) -> Cow<'a, RelativePath>[src]
fn from(s: &'a RelativePath) -> Cow<'a, RelativePath>Performs the conversion.
impl AsRef<RelativePath> for RelativePathBuf[src]
impl AsRef<RelativePath> for RelativePathBuffn as_ref(&self) -> &RelativePath[src]
fn as_ref(&self) -> &RelativePathPerforms the conversion.
impl Borrow<RelativePath> for RelativePathBuf[src]
impl Borrow<RelativePath> for RelativePathBuffn borrow(&self) -> &RelativePath[src]
fn borrow(&self) -> &RelativePathImmutably borrows from an owned value. Read more
impl ToOwned for RelativePath[src]
impl ToOwned for RelativePathtype Owned = RelativePathBuf
fn to_owned(&self) -> RelativePathBuf[src]
fn to_owned(&self) -> RelativePathBufCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut Self::Owned)[src]
fn clone_into(&self, target: &mut Self::Owned)🔬 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 Debug for RelativePath[src]
impl Debug for RelativePathfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl AsRef<RelativePath> for String[src]
impl AsRef<RelativePath> for Stringfn as_ref(&self) -> &RelativePath[src]
fn as_ref(&self) -> &RelativePathPerforms the conversion.
impl AsRef<RelativePath> for str[src]
impl AsRef<RelativePath> for strfn as_ref(&self) -> &RelativePath[src]
fn as_ref(&self) -> &RelativePathPerforms the conversion.
impl AsRef<RelativePath> for RelativePath[src]
impl AsRef<RelativePath> for RelativePathfn as_ref(&self) -> &RelativePath[src]
fn as_ref(&self) -> &RelativePathPerforms the conversion.
impl PartialEq for RelativePath[src]
impl PartialEq for RelativePathfn eq(&self, other: &RelativePath) -> bool[src]
fn eq(&self, other: &RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for RelativePath[src]
impl Eq for RelativePathimpl PartialOrd for RelativePath[src]
impl PartialOrd for RelativePathfn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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 RelativePath[src]
impl Ord for RelativePathfn cmp(&self, other: &RelativePath) -> Ordering[src]
fn cmp(&self, other: &RelativePath) -> 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 Hash for RelativePath[src]
impl Hash for RelativePathfn 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<'a, 'b> PartialEq<RelativePath> for RelativePathBuf[src]
impl<'a, 'b> PartialEq<RelativePath> for RelativePathBuffn eq(&self, other: &RelativePath) -> bool[src]
fn eq(&self, other: &RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<RelativePathBuf> for RelativePath[src]
impl<'a, 'b> PartialEq<RelativePathBuf> for RelativePathfn eq(&self, other: &RelativePathBuf) -> bool[src]
fn eq(&self, other: &RelativePathBuf) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<RelativePath> for RelativePathBuf[src]
impl<'a, 'b> PartialOrd<RelativePath> for RelativePathBuffn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<RelativePathBuf> for RelativePath[src]
impl<'a, 'b> PartialOrd<RelativePathBuf> for RelativePathfn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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 RelativePath> for RelativePathBuf[src]
impl<'a, 'b> PartialEq<&'a RelativePath> for RelativePathBuffn eq(&self, other: &&'a RelativePath) -> bool[src]
fn eq(&self, other: &&'a RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<RelativePathBuf> for &'a RelativePath[src]
impl<'a, 'b> PartialEq<RelativePathBuf> for &'a RelativePathfn eq(&self, other: &RelativePathBuf) -> bool[src]
fn eq(&self, other: &RelativePathBuf) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<&'a RelativePath> for RelativePathBuf[src]
impl<'a, 'b> PartialOrd<&'a RelativePath> for RelativePathBuffn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<RelativePathBuf> for &'a RelativePath[src]
impl<'a, 'b> PartialOrd<RelativePathBuf> for &'a RelativePathfn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePathBuf) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<RelativePath> for Cow<'a, RelativePath>[src]
impl<'a, 'b> PartialEq<RelativePath> for Cow<'a, RelativePath>fn eq(&self, other: &RelativePath) -> bool[src]
fn eq(&self, other: &RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'a, RelativePath>> for RelativePath[src]
impl<'a, 'b> PartialEq<Cow<'a, RelativePath>> for RelativePathfn eq(&self, other: &Cow<'a, RelativePath>) -> bool[src]
fn eq(&self, other: &Cow<'a, RelativePath>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<RelativePath> for Cow<'a, RelativePath>[src]
impl<'a, 'b> PartialOrd<RelativePath> for Cow<'a, RelativePath>fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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, RelativePath>> for RelativePath[src]
impl<'a, 'b> PartialOrd<Cow<'a, RelativePath>> for RelativePathfn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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 RelativePath> for Cow<'a, RelativePath>[src]
impl<'a, 'b> PartialEq<&'b RelativePath> for Cow<'a, RelativePath>fn eq(&self, other: &&'b RelativePath) -> bool[src]
fn eq(&self, other: &&'b RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<Cow<'a, RelativePath>> for &'b RelativePath[src]
impl<'a, 'b> PartialEq<Cow<'a, RelativePath>> for &'b RelativePathfn eq(&self, other: &Cow<'a, RelativePath>) -> bool[src]
fn eq(&self, other: &Cow<'a, RelativePath>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<&'b RelativePath> for Cow<'a, RelativePath>[src]
impl<'a, 'b> PartialOrd<&'b RelativePath> for Cow<'a, RelativePath>fn partial_cmp(&self, other: &&'b RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'b RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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, RelativePath>> for &'b RelativePath[src]
impl<'a, 'b> PartialOrd<Cow<'a, RelativePath>> for &'b RelativePathfn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Cow<'a, RelativePath>) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<str> for RelativePath[src]
impl<'a, 'b> PartialEq<str> for RelativePathfn eq(&self, other: &str) -> bool[src]
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<RelativePath> for str[src]
impl<'a, 'b> PartialEq<RelativePath> for strfn eq(&self, other: &RelativePath) -> bool[src]
fn eq(&self, other: &RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<str> for RelativePath[src]
impl<'a, 'b> PartialOrd<str> for RelativePathfn partial_cmp(&self, other: &str) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &str) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<RelativePath> for str[src]
impl<'a, 'b> PartialOrd<RelativePath> for strfn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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 str> for RelativePath[src]
impl<'a, 'b> PartialEq<&'a str> for RelativePathfn eq(&self, other: &&'a str) -> bool[src]
fn eq(&self, other: &&'a str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<RelativePath> for &'a str[src]
impl<'a, 'b> PartialEq<RelativePath> for &'a strfn eq(&self, other: &RelativePath) -> bool[src]
fn eq(&self, other: &RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<&'a str> for RelativePath[src]
impl<'a, 'b> PartialOrd<&'a str> for RelativePathfn partial_cmp(&self, other: &&'a str) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a str) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<RelativePath> for &'a str[src]
impl<'a, 'b> PartialOrd<RelativePath> for &'a strfn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<String> for RelativePath[src]
impl<'a, 'b> PartialEq<String> for RelativePathfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<RelativePath> for String[src]
impl<'a, 'b> PartialEq<RelativePath> for Stringfn eq(&self, other: &RelativePath) -> bool[src]
fn eq(&self, other: &RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<String> for RelativePath[src]
impl<'a, 'b> PartialOrd<String> for RelativePathfn partial_cmp(&self, other: &String) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &String) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<RelativePath> for String[src]
impl<'a, 'b> PartialOrd<RelativePath> for Stringfn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<str> for &'a RelativePath[src]
impl<'a, 'b> PartialEq<str> for &'a RelativePathfn eq(&self, other: &str) -> bool[src]
fn eq(&self, other: &str) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a RelativePath> for str[src]
impl<'a, 'b> PartialEq<&'a RelativePath> for strfn eq(&self, other: &&'a RelativePath) -> bool[src]
fn eq(&self, other: &&'a RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<str> for &'a RelativePath[src]
impl<'a, 'b> PartialOrd<str> for &'a RelativePathfn partial_cmp(&self, other: &str) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &str) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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 RelativePath> for str[src]
impl<'a, 'b> PartialOrd<&'a RelativePath> for strfn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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<String> for &'a RelativePath[src]
impl<'a, 'b> PartialEq<String> for &'a RelativePathfn eq(&self, other: &String) -> bool[src]
fn eq(&self, other: &String) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialEq<&'a RelativePath> for String[src]
impl<'a, 'b> PartialEq<&'a RelativePath> for Stringfn eq(&self, other: &&'a RelativePath) -> bool[src]
fn eq(&self, other: &&'a RelativePath) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl<'a, 'b> PartialOrd<String> for &'a RelativePath[src]
impl<'a, 'b> PartialOrd<String> for &'a RelativePathfn partial_cmp(&self, other: &String) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &String) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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 RelativePath> for String[src]
impl<'a, 'b> PartialOrd<&'a RelativePath> for Stringfn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &&'a RelativePath) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
fn lt(&self, other: &Rhs) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
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
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
fn gt(&self, other: &Rhs) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
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
Auto Trait Implementations
impl Send for RelativePath
impl Send for RelativePathimpl Sync for RelativePath
impl Sync for RelativePath