Union Componentpub

Source
:union(pub) Component
  | Normal PathSegment
  | RootDir
  | CurDir
  | ParentDir
Description

Component classifies the kinds of fragment encountered while walking a Path. Mirrors Rust's std::path::Component minus the Windows Prefix variant (Silo is Unix-only until the Windows target lands).

Variants:

  • Normal PathSegment — a regular path segment in OS-native bytes.
  • RootDir — the leading / of an absolute path.
  • CurDir — a . fragment.
  • ParentDir — a .. fragment.

Variants

| Normal PathSegment
| RootDir
| CurDir
| ParentDir