]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/solid/path.rs
Rollup merge of #93613 - crlf0710:rename_to_async_iter, r=yaahc
[rust.git] / library / std / src / sys / solid / path.rs
1 use crate::ffi::OsStr;
2 use crate::io;
3 use crate::path::{Path, PathBuf, Prefix};
4 use crate::sys::unsupported;
5
6 #[inline]
7 pub fn is_sep_byte(b: u8) -> bool {
8     b == b'\\'
9 }
10
11 #[inline]
12 pub fn is_verbatim_sep(b: u8) -> bool {
13     b == b'\\'
14 }
15
16 pub fn parse_prefix(_: &OsStr) -> Option<Prefix<'_>> {
17     None
18 }
19
20 pub const MAIN_SEP_STR: &str = "\\";
21 pub const MAIN_SEP: char = '\\';
22
23 pub(crate) fn absolute(_path: &Path) -> io::Result<PathBuf> {
24     unsupported()
25 }