-
Every Rust string can be converted to a
Vec<u8>
. -
Not all Rust
Vec<u8>
, interpreted literally, are valid Rust strings. -
When doing Rust/JS ffi, we have
Rust string <-> JS string
-
When doing Rust/JS ffi, what is the idiomatic way for handling a
Rust Vec<u8>
?
Thanks!