Struct stdweb::web::TypedArray
[−]
[src]
pub struct TypedArray<T: ArrayKind>(_, _);
JavaScript typed arrays are array-like objects and provide a mechanism for accessing raw binary data.
Methods
impl<T: ArrayKind> TypedArray<T>
[src]
fn buffer(&self) -> ArrayBuffer
[src]
Returns the TypedArray referenced by this typed array.
fn len(&self) -> usize
[src]
Returns the number of elements in the buffer.
fn to_vec(&self) -> Vec<T>
[src]
Copies self
into a new Vec
.
Trait Implementations
impl<T> Debug for TypedArray<T> where
T: ArrayKind,
[src]
T: ArrayKind,
fn fmt(&self, formatter: &mut Formatter) -> Result
[src]
Formats the value using the given formatter.
impl<T> Clone for TypedArray<T> where
T: ArrayKind,
[src]
T: ArrayKind,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T> AsRef<Reference> for TypedArray<T> where
T: ArrayKind,
[src]
T: ArrayKind,
impl<R: TryInto<Reference>, T> TryFrom<R> for TypedArray<T> where
<R as TryInto<Reference>>::Error: Into<Box<Error>>,
T: ArrayKind,
[src]
<R as TryInto<Reference>>::Error: Into<Box<Error>>,
T: ArrayKind,
type Error = Box<Error>
The type returned in the event of a conversion error.
fn try_from(value: R) -> Result<Self, Self::Error>
[src]
Performs the conversion.