Skip to main content

FilePathSegment

Struct FilePathSegment 

Source
pub struct FilePathSegment<'a>(/* private fields */);
Expand description

A FilePath segment.

Implementations§

Source§

impl<'a> FilePathSegment<'a>

Source

pub unsafe fn new_unchecked<T: Into<Cow<'a, str>>>(value: T) -> Self

Make a new Self without doing any validity checks.

§Safety

value must be a valid Self literal.

Source

pub fn as_str(&self) -> &str

Borrow as a str.

Source

pub fn decode(self) -> Cow<'a, [u8]>

Source

pub fn try_decode(self) -> Result<Cow<'a, str>, (Utf8Error, Cow<'a, [u8]>)>

try_percent_decode.

§Errors

If try_percent_decode returns an error, that error is returned.

Source

pub fn lossy_decode(self) -> Cow<'a, str>

Source

pub fn is_drive_letter(&self) -> bool

Source

pub fn is_normalized_drive_letter(&self) -> bool

Source

pub fn is_non_normalized_drive_letter(&self) -> bool

Source

pub fn is_single_dot(&self) -> bool

Source

pub fn is_double_dot(&self) -> bool

Source

pub fn into_inner(self) -> Cow<'a, str>

Turn into the inner Cow.

Source

pub fn into_owned(self) -> FilePathSegment<'static>

Turn into an owned Self.

Source

pub fn borrowed(&self) -> FilePathSegment<'_>

Make a borrowing Self.

Source§

impl<'a> FilePathSegment<'a>

Source

pub fn new<T: Into<Self>>(value: T) -> Self

Make a new Self.

Source§

impl<'a> FilePathSegment<'a>

Source

pub fn len(&self) -> usize

The length.

Source

pub fn is_empty(&self) -> bool

If it’s empty.

Trait Implementations§

Source§

impl AsRef<str> for FilePathSegment<'_>

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Borrow<str> for FilePathSegment<'_>

Source§

fn borrow(&self) -> &str

Immutably borrows from an owned value. Read more
Source§

impl<'a> Clone for FilePathSegment<'a>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for FilePathSegment<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FilePathSegment<'_>

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for FilePathSegment<'_>

Source§

impl<'a, 'b> Extend<FilePathSegment<'b>> for FilePathSegments<'a>

Source§

fn extend<I: IntoIterator<Item = FilePathSegment<'b>>>(&mut self, iter: I)

Extends a collection with the contents of an iterator. Read more
Source§

fn extend_one(&mut self, item: T)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
Source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Source§

impl<'a, const N: usize> From<&'a Cow<'_, [u8; N]>> for FilePathSegment<'a>

Source§

fn from(value: &'a Cow<'_, [u8; N]>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Cow<'_, [u8]>> for FilePathSegment<'a>

Source§

fn from(value: &'a Cow<'_, [u8]>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Cow<'_, str>> for FilePathSegment<'a>

Source§

fn from(value: &'a Cow<'_, str>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for PathSegments<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for FilePathSegments<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for SpecialNotFilePathSegments<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for NonSpecialPathSegments<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for PathSegment<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for FilePathSegment<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for SpecialNotFilePathSegment<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a FilePathSegment<'_>> for NonSpecialPathSegment<'a>

Source§

fn from(value: &'a FilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a NonSpecialPathSegment<'_>> for FilePathSegment<'a>

Source§

fn from(value: &'a NonSpecialPathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a PathSegment<'_>> for FilePathSegment<'a>

Source§

fn from(value: &'a PathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a SpecialNotFilePathSegment<'_>> for FilePathSegment<'a>

Source§

fn from(value: &'a SpecialNotFilePathSegment<'_>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a String> for FilePathSegment<'a>

Source§

fn from(value: &'a String) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a Vec<u8>> for FilePathSegment<'a>

Source§

fn from(value: &'a Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl<'a, const N: usize> From<&'a [u8; N]> for FilePathSegment<'a>

Source§

fn from(value: &'a [u8; N]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a [u8]> for FilePathSegment<'a>

Source§

fn from(value: &'a [u8]) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<&'a str> for FilePathSegment<'a>

Source§

fn from(value: &'a str) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, [u8]>> for FilePathSegment<'a>

Source§

fn from(value: Cow<'a, [u8]>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<Cow<'a, str>> for FilePathSegment<'a>

Source§

fn from(value: Cow<'a, str>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for PathSegment<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for SpecialNotFilePathSegment<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for NonSpecialPathSegment<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for PathSegments<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for SpecialNotFilePathSegments<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for FilePathSegments<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<FilePathSegment<'a>> for NonSpecialPathSegments<'a>

Source§

fn from(value: FilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<NonSpecialPathSegment<'a>> for FilePathSegment<'a>

Source§

fn from(value: NonSpecialPathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<PathSegment<'a>> for FilePathSegment<'a>

Source§

fn from(value: PathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl<'a> From<SpecialNotFilePathSegment<'a>> for FilePathSegment<'a>

Source§

fn from(value: SpecialNotFilePathSegment<'a>) -> Self

Converts to this type from the input type.
Source§

impl From<String> for FilePathSegment<'static>

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<Vec<u8>> for FilePathSegment<'static>

Source§

fn from(value: Vec<u8>) -> Self

Converts to this type from the input type.
Source§

impl FromStr for FilePathSegment<'static>

Source§

type Err = !

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for FilePathSegment<'_>

Source§

fn hash<H: Hasher>(&self, hasher: &mut H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for FilePathSegment<'_>

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq<&str> for FilePathSegment<'_>

Source§

fn eq(&self, other: &&str) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<Cow<'_, str>> for FilePathSegment<'_>

Source§

fn eq(&self, other: &Cow<'_, str>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for SpecialNotFilePathSegments<'_>

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for FilePathSegments<'_>

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for str

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for &str

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for String

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for Cow<'_, str>

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegment<'_>> for FilePathSegment<'_>

Source§

fn eq(&self, other: &FilePathSegment<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<FilePathSegments<'_>> for FilePathSegment<'_>

Source§

fn eq(&self, other: &FilePathSegments<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<SpecialNotFilePathSegments<'_>> for FilePathSegment<'_>

Source§

fn eq(&self, other: &SpecialNotFilePathSegments<'_>) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<String> for FilePathSegment<'_>

Source§

fn eq(&self, other: &String) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialEq<str> for FilePathSegment<'_>

Source§

fn eq(&self, other: &str) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd<&str> for FilePathSegment<'_>

Source§

fn partial_cmp(&self, other: &&str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<Cow<'_, str>> for FilePathSegment<'_>

Source§

fn partial_cmp(&self, other: &Cow<'_, str>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for SpecialNotFilePathSegments<'_>

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for FilePathSegments<'_>

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for str

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for &str

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for String

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for Cow<'_, str>

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegment<'_>> for FilePathSegment<'_>

Source§

fn partial_cmp(&self, other: &FilePathSegment<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<FilePathSegments<'_>> for FilePathSegment<'_>

Source§

fn partial_cmp(&self, other: &FilePathSegments<'_>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<SpecialNotFilePathSegments<'_>> for FilePathSegment<'_>

Source§

fn partial_cmp( &self, other: &SpecialNotFilePathSegments<'_>, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<String> for FilePathSegment<'_>

Source§

fn partial_cmp(&self, other: &String) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PartialOrd<str> for FilePathSegment<'_>

Source§

fn partial_cmp(&self, other: &str) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for FilePathSegment<'a>

§

impl<'a> RefUnwindSafe for FilePathSegment<'a>

§

impl<'a> Send for FilePathSegment<'a>

§

impl<'a> Sync for FilePathSegment<'a>

§

impl<'a> Unpin for FilePathSegment<'a>

§

impl<'a> UnsafeUnpin for FilePathSegment<'a>

§

impl<'a> UnwindSafe for FilePathSegment<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.