[−][src]Function wasi_common::host::path_from_slice
pub fn path_from_slice<'a>(s: &'a [u8]) -> Result<&'a str, __wasi_errno_t>
Creates not-owned WASI path from byte slice.
NB WASI spec requires bytes to be valid UTF-8. Otherwise,
__WASI_EILSEQ
error is returned.