pub trait ArrayBufferCopy<T> {
// Required methods
fn from_slice(src: &[T]) -> Self;
fn copy_from(&self, src: &[T]);
fn copy_to(&self, dst: &mut [T]);
fn to_vec(&self) -> Vec<T>;
}Expand description
Copy array buffer on the js side.
Required Methods§
Sourcefn from_slice(src: &[T]) -> Self
fn from_slice(src: &[T]) -> Self
Copy slice to js array, return js typed array.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.