[−][src]Function wasi_common_lucet::host::path_from_vec
pub fn path_from_vec<S>(s: S) -> Result<String, u16> where
S: Into<Vec<u8>>,
Creates owned WASI path from byte vector.
NB WASI spec requires bytes to be valid UTF-8. Otherwise,
__WASI_EILSEQ
error is returned.