[][src]Function wasi_common::host::path_from_vec

pub fn path_from_vec<S: Into<Vec<u8>>>(s: S) -> Result<String, __wasi_errno_t>

Creates owned WASI path from byte vector.

NB WASI spec requires bytes to be valid UTF-8. Otherwise, __WASI_EILSEQ error is returned.