[−][src]Struct stdweb::web::TypedArray
JavaScript typed arrays are array-like objects and provide a mechanism for accessing raw binary data.
Methods
impl<T: ArrayKind> TypedArray<T>[src]
impl<T: ArrayKind> TypedArray<T>pub fn buffer(&self) -> ArrayBuffer | [src] |
Returns the TypedArray referenced by this typed array.
pub fn len(&self) -> u32 | [src] |
Returns the number of elements in the buffer.
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> JsSerialize for TypedArray<T>impl<T: ArrayKind> TryFrom<TypedArray<T>> for Reference[src]
impl<T: ArrayKind> TryFrom<TypedArray<T>> for Referencetype Error = Void
The type returned in the event of a conversion error.
fn try_from(value: TypedArray<T>) -> Result<Self, Self::Error> | [src] |
impl<T: ArrayKind> TryFrom<Reference> for TypedArray<T>[src]
impl<T: ArrayKind> TryFrom<Reference> for TypedArray<T>type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: Reference) -> Result<Self, Self::Error> | [src] |
impl<'_r, T: ArrayKind> TryFrom<&'_r Reference> for TypedArray<T>[src]
impl<'_r, T: ArrayKind> TryFrom<&'_r Reference> for TypedArray<T>type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error> | [src] |
impl<T: ArrayKind> TryFrom<Value> for TypedArray<T>[src]
impl<T: ArrayKind> TryFrom<Value> for TypedArray<T>type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: Value) -> Result<Self, Self::Error> | [src] |
impl<'_r, T: ArrayKind> TryFrom<&'_r Value> for TypedArray<T>[src]
impl<'_r, T: ArrayKind> TryFrom<&'_r Value> for TypedArray<T>type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error> | [src] |
impl<T: ArrayKind> InstanceOf for TypedArray<T>[src]
impl<T: ArrayKind> InstanceOf for TypedArray<T>fn instance_of(reference: &Reference) -> bool | [src] |
impl<T: ArrayKind> ReferenceType for TypedArray<T>[src]
impl<T: ArrayKind> ReferenceType for TypedArray<T>unsafe fn from_reference_unchecked(reference: Reference) -> Self | [src] |
impl From<TypedArray<i8>> for Vec<i8>[src]
impl From<TypedArray<i8>> for Vec<i8>fn from(array: TypedArray<i8>) -> Self | [src] |
impl<'a> From<&'a TypedArray<i8>> for Vec<i8>[src]
impl<'a> From<&'a TypedArray<i8>> for Vec<i8>fn from(array: &'a TypedArray<i8>) -> Self | [src] |
impl From<TypedArray<u8>> for Vec<u8>[src]
impl From<TypedArray<u8>> for Vec<u8>fn from(array: TypedArray<u8>) -> Self | [src] |
impl<'a> From<&'a TypedArray<u8>> for Vec<u8>[src]
impl<'a> From<&'a TypedArray<u8>> for Vec<u8>fn from(array: &'a TypedArray<u8>) -> Self | [src] |
impl From<TypedArray<i16>> for Vec<i16>[src]
impl From<TypedArray<i16>> for Vec<i16>fn from(array: TypedArray<i16>) -> Self | [src] |
impl<'a> From<&'a TypedArray<i16>> for Vec<i16>[src]
impl<'a> From<&'a TypedArray<i16>> for Vec<i16>fn from(array: &'a TypedArray<i16>) -> Self | [src] |
impl From<TypedArray<u16>> for Vec<u16>[src]
impl From<TypedArray<u16>> for Vec<u16>fn from(array: TypedArray<u16>) -> Self | [src] |
impl<'a> From<&'a TypedArray<u16>> for Vec<u16>[src]
impl<'a> From<&'a TypedArray<u16>> for Vec<u16>fn from(array: &'a TypedArray<u16>) -> Self | [src] |
impl From<TypedArray<i32>> for Vec<i32>[src]
impl From<TypedArray<i32>> for Vec<i32>fn from(array: TypedArray<i32>) -> Self | [src] |
impl<'a> From<&'a TypedArray<i32>> for Vec<i32>[src]
impl<'a> From<&'a TypedArray<i32>> for Vec<i32>fn from(array: &'a TypedArray<i32>) -> Self | [src] |
impl From<TypedArray<u32>> for Vec<u32>[src]
impl From<TypedArray<u32>> for Vec<u32>fn from(array: TypedArray<u32>) -> Self | [src] |
impl<'a> From<&'a TypedArray<u32>> for Vec<u32>[src]
impl<'a> From<&'a TypedArray<u32>> for Vec<u32>fn from(array: &'a TypedArray<u32>) -> Self | [src] |
impl From<TypedArray<f32>> for Vec<f32>[src]
impl From<TypedArray<f32>> for Vec<f32>fn from(array: TypedArray<f32>) -> Self | [src] |
impl<'a> From<&'a TypedArray<f32>> for Vec<f32>[src]
impl<'a> From<&'a TypedArray<f32>> for Vec<f32>fn from(array: &'a TypedArray<f32>) -> Self | [src] |
impl From<TypedArray<f64>> for Vec<f64>[src]
impl From<TypedArray<f64>> for Vec<f64>fn from(array: TypedArray<f64>) -> Self | [src] |
impl<'a> From<&'a TypedArray<f64>> for Vec<f64>[src]
impl<'a> From<&'a TypedArray<f64>> for Vec<f64>fn from(array: &'a TypedArray<f64>) -> Self | [src] |
impl<T: ArrayKind> From<TypedArray<T>> for Reference[src]
impl<T: ArrayKind> From<TypedArray<T>> for Referencefn from(value: TypedArray<T>) -> Self | [src] |
impl<'a, T: ArrayKind> From<&'a [T]> for TypedArray<T>[src]
impl<'a, T: ArrayKind> From<&'a [T]> for TypedArray<T>impl<T: ArrayKind> From<ArrayBuffer> for TypedArray<T>[src]
impl<T: ArrayKind> From<ArrayBuffer> for TypedArray<T>fn from(buffer: ArrayBuffer) -> Self | [src] |
impl<'a, T: ArrayKind> From<&'a ArrayBuffer> for TypedArray<T>[src]
impl<'a, T: ArrayKind> From<&'a ArrayBuffer> for TypedArray<T>fn from(buffer: &'a ArrayBuffer) -> Self | [src] |
impl<T: Eq + ArrayKind> Eq for TypedArray<T>[src]
impl<T: Eq + ArrayKind> Eq for TypedArray<T>impl<T: PartialEq + ArrayKind> PartialEq<TypedArray<T>> for TypedArray<T>[src]
impl<T: PartialEq + ArrayKind> PartialEq<TypedArray<T>> for TypedArray<T>fn eq(&self, other: &TypedArray<T>) -> bool | [src] |
fn ne(&self, other: &TypedArray<T>) -> bool | [src] |
impl<T: ArrayKind> AsRef<Reference> for TypedArray<T>[src]
impl<T: ArrayKind> AsRef<Reference> for TypedArray<T>impl<T: Clone + ArrayKind> Clone for TypedArray<T>[src]
impl<T: Clone + ArrayKind> Clone for TypedArray<T>fn clone(&self) -> TypedArray<T> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source. Read more
impl<T: Debug + ArrayKind> Debug for TypedArray<T>[src]
impl<T: Debug + ArrayKind> Debug for TypedArray<T>Auto Trait Implementations
impl<T> Send for TypedArray<T> where
T: Send,
impl<T> Send for TypedArray<T> where
T: Send, impl<T> Sync for TypedArray<T> where
T: Sync,
impl<T> Sync for TypedArray<T> where
T: Sync, Blanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId | [src] |