Struct std::path::PrefixComponent [] [src]

pub struct PrefixComponent<'a> {
    // some fields omitted
}
1.0.0

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 for PrefixComponent<'a>

fn eq(&self, other: &PrefixComponent<'a>) -> bool

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

impl<'a> PartialOrd for PrefixComponent<'a>

fn partial_cmp(&self, other: &PrefixComponent<'a>) -> Option<Ordering>

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

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

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

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

impl<'a> Ord for PrefixComponent<'a>

fn cmp(&self, other: &PrefixComponent<'a>) -> Ordering

impl<'a> Hash for PrefixComponent<'a>

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

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0

Derived Implementations

impl<'a> Debug for PrefixComponent<'a>

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl<'a> Eq for PrefixComponent<'a>

impl<'a> Clone for PrefixComponent<'a>

fn clone(&self) -> PrefixComponent<'a>

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

impl<'a> Copy for PrefixComponent<'a>