Struct bitflags::__core::path::PrefixComponent 1.0.0
[−]
[src]
pub struct PrefixComponent<'a> {
// some fields omitted
}A Windows path prefix, e.g. C: or \\server\share.
Does not occur on Unix.
Methods
impl<'a> PrefixComponent<'a>
fn kind(&self) -> Prefix<'a>
The parsed prefix data.
fn as_os_str(&self) -> &'a OsStr
The raw OsStr slice for this prefix.
Trait Implementations
impl<'a> PartialEq<PrefixComponent<'a>> for PrefixComponent<'a>
fn eq(&self, other: &PrefixComponent<'a>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool
This method tests for !=.
impl<'a> PartialOrd<PrefixComponent<'a>> for PrefixComponent<'a>
fn partial_cmp(&self, other: &PrefixComponent<'a>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl<'a> Ord for PrefixComponent<'a>
fn cmp(&self, other: &PrefixComponent<'a>) -> Ordering
This method returns an Ordering between self and other. Read more
impl<'a> Hash for PrefixComponent<'a>
fn hash<H>(&self, h: &mut H) where H: Hasher
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
Derived Implementations
impl<'a> Debug for PrefixComponent<'a>
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl<'a> Eq for PrefixComponent<'a>
impl<'a> Clone for PrefixComponent<'a>
fn clone(&self) -> PrefixComponent<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more