# Struct bitflags::__core::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<PrefixComponent<'a>> for PrefixComponent<'a>`

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

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

### `impl<'a> PartialOrd<PrefixComponent<'a>> 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>(&self, h: &mut H) where H: Hasher`

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

### Derived Implementations

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

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>`

### `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>`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)