Escape Hatches
Use escape hatches sparingly and deliberately.
- Borrow strict view from virtual:
vpath.as_unvirtual()(preferred for shared helpers). - Ownership conversions:
StrictPath::virtualize()→VirtualPathVirtualPath::unvirtual()→StrictPathStrictPath::unstrict()→PathBuf(avoid unless you truly need an ownedPathBuf)
- Avoid chaining escape hatches in application code. If you must own a
PathBuf, isolate it in a clearly-marked narrow scope.