std::path::Prefix does not support windows prefixes like \??\C:\....
See more about prefix which refers to per-user DosDevices
#![allow(unused)]
use std::path::{Component, Path, Prefix};
fn main() {
let path = Path::new(r"\??\C:\Users\Rust\Pictures\Ferris");
assert!(path.is_absolute());
}
(Playground)
Errors:
Compiling playground v0.0.1 (/playground)
Finished dev [unoptimized + debuginfo] target(s) in 0.61s
Running `target/debug/playground`
thread 'main' panicked at 'assertion failed: path.is_absolute()', src/main.rs:7:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.
std::path::Prefixdoes not support windows prefixes like\??\C:\....See more about prefix which refers to per-user DosDevices
(Playground)
Errors: