Skip to main content

js_value_vector_into_abi

Function js_value_vector_into_abi 

Source
pub fn js_value_vector_into_abi<T: Into<JsValue>>(
    vector: Box<[T]>,
) -> <Box<[JsValue]> as IntoWasmAbi>::Abi
Expand description

The compat form of an owned vector: an in-place sequence of JsValue handles, converted to or from T in Rust. The released Vec<String>, Vecs of exported structs and numeric enums, and third-party impls cross this way. It has no new uses: an element whose single value crosses without calling into wasm is declared as an encoded sequence instead.

§⚠️ Unstable

This is part of the internal convert module, no stability guarantees are provided. Use at your own risk. See its documentation for more details.