Enum bitflags::__core::path::Prefix [] [src]

pub enum Prefix<'a> {
    Verbatim(&'a OsStr),
    VerbatimUNC(&'a OsStr, &'a OsStr),
    VerbatimDisk(u8),
    DeviceNS(&'a OsStr),
    UNC(&'a OsStr, &'a OsStr),
    Disk(u8),
}
1.0.0
[]

Path prefixes (Windows only).

Windows uses a variety of path styles, including references to drive volumes (like C:), network shared folders (like \\server\share) and others. In addition, some path prefixes are "verbatim", in which case / is not treated as a separator and essentially no normalization is performed.

Variants

Verbatim

Prefix \\?\, together with the given component immediately following it.

VerbatimUNC

Prefix \\?\UNC\, with the "server" and "share" components following it.

VerbatimDisk

Prefix like \\?\C:\, for the given drive letter

DeviceNS

Prefix \\.\, together with the given component immediately following it.

UNC

Prefix \\server\share, with the given "server" and "share" components.

Disk

Prefix C: for the given disk drive.