]> git.lizzy.rs Git - rust.git/blob - library/std/src/sys/sgx/path.rs
Rollup merge of #95211 - terrarier2111:improve-parser, r=compiler-errors
[rust.git] / library / std / src / sys / sgx / 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 }