[][src]Struct stdweb::web::TypedArray

pub struct TypedArray<T: ArrayKind>(_, _);

JavaScript typed arrays are array-like objects and provide a mechanism for accessing raw binary data.

(JavaScript docs)

Methods

impl<T: ArrayKind> TypedArray<T>[src]

pub fn buffer(&self) -> ArrayBuffer[src]

Returns the TypedArray referenced by this typed array.

(JavaScript docs)

pub fn len(&self) -> u32[src]

Returns the number of elements in the buffer.

(JavaScript docs)

pub fn to_vec(&self) -> Vec<T>[src]

Copies self into a new Vec.

Trait Implementations

impl<T: ArrayKind> JsSerialize for TypedArray<T>[src]

impl<T: ArrayKind> TryFrom<TypedArray<T>> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl<T: ArrayKind> TryFrom<Reference> for TypedArray<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r, T: ArrayKind> TryFrom<&'_r Reference> for TypedArray<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: ArrayKind> TryFrom<Value> for TypedArray<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r, T: ArrayKind> TryFrom<&'_r Value> for TypedArray<T>[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<T: ArrayKind> InstanceOf for TypedArray<T>[src]

impl<T: ArrayKind> ReferenceType for TypedArray<T>[src]

impl<T: ArrayKind> AsRef<Reference> for TypedArray<T>[src]

impl From<TypedArray<i8>> for Vec<i8>[src]

impl<'a> From<&'a TypedArray<i8>> for Vec<i8>[src]

impl From<TypedArray<u8>> for Vec<u8>[src]

impl<'a> From<&'a TypedArray<u8>> for Vec<u8>[src]

impl From<TypedArray<i16>> for Vec<i16>[src]

impl<'a> From<&'a TypedArray<i16>> for Vec<i16>[src]

impl From<TypedArray<u16>> for Vec<u16>[src]

impl<'a> From<&'a TypedArray<u16>> for Vec<u16>[src]

impl From<TypedArray<i32>> for Vec<i32>[src]

impl<'a> From<&'a TypedArray<i32>> for Vec<i32>[src]

impl From<TypedArray<u32>> for Vec<u32>[src]

impl<'a> From<&'a TypedArray<u32>> for Vec<u32>[src]

impl From<TypedArray<f32>> for Vec<f32>[src]

impl<'a> From<&'a TypedArray<f32>> for Vec<f32>[src]

impl From<TypedArray<f64>> for Vec<f64>[src]

impl<'a> From<&'a TypedArray<f64>> for Vec<f64>[src]

impl<T: ArrayKind> From<TypedArray<T>> for Reference[src]

impl<'a, T: ArrayKind> From<&'a [T]> for TypedArray<T>[src]

impl<T: ArrayKind> From<ArrayBuffer> for TypedArray<T>[src]

impl<'a, T: ArrayKind> From<&'a ArrayBuffer> for TypedArray<T>[src]

impl<T: Clone + ArrayKind> Clone for TypedArray<T>[src]

impl<T: Eq + ArrayKind> Eq for TypedArray<T>[src]

impl<T: PartialEq + ArrayKind> PartialEq<TypedArray<T>> for TypedArray<T>[src]

impl<T: Debug + ArrayKind> Debug for TypedArray<T>[src]

Auto Trait Implementations

impl<T> Send for TypedArray<T> where
    T: Send

impl<T> Sync for TypedArray<T> where
    T: Sync

impl<T> Unpin for TypedArray<T> where
    T: Unpin

impl<T> UnwindSafe for TypedArray<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for TypedArray<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]