pub const SEPARATORS: &[char];🔬This is a nightly-only experimental API. (
const_path_separators #153106)Expand description
All path separators recognized on the current platform, represented as chars; for example,
this is &['/'][..] on Unix and &['\\', '/'][..] on Windows. The primary
separator is always element 0 of the slice.