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