wasm-bindgen
[u8]
[i8]
[u16]
[i16]
[u32]
[i32]
[u64]
[i64]
[f32]
[f64]
T
&T
&mut T
Option<&T>
Option<T>
TypedArray
Int32Array
Uint8Array
# #![allow(unused_variables)] #fn main() { use wasm_bindgen::prelude::*; #[wasm_bindgen] pub fn take_number_slice_by_shared_ref(x: &[f64]) {} #[wasm_bindgen] pub fn take_number_slice_by_exclusive_ref(x: &mut [u8]) {} #}
import { take_number_slice_by_shared_ref, take_number_slice_by_exclusive_ref, } from './guide_supported_types_examples'; take_number_slice_by_shared_ref(new Float64Array(100)); take_number_slice_by_exclusive_ref(new Uint8Array(100));