pub fn is_device_name(component: &str) -> bool
Whether a path component names a Windows device (CON, NUL.txt, COM1, COM\u{b9}, LPT0, CONIN$, …), which Windows opens instead of a file whatever the extension and case.
CON
NUL.txt
COM1
COM\u{b9}
LPT0
CONIN$