[−][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]
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> TryFrom<TypedArray<T>> for Reference
[src]
type 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]
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]
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]
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]
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]
fn instance_of(reference: &Reference) -> bool
[src]
impl<T: ArrayKind> ReferenceType for TypedArray<T>
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
impl<T: Eq + ArrayKind> Eq for TypedArray<T>
[src]
impl<T: Clone + ArrayKind> Clone for TypedArray<T>
[src]
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: PartialEq + ArrayKind> PartialEq<TypedArray<T>> for TypedArray<T>
[src]
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 From<TypedArray<i8>> for Vec<i8>
[src]
fn from(array: TypedArray<i8>) -> Self
[src]
impl<'a> From<&'a TypedArray<i8>> for Vec<i8>
[src]
fn from(array: &'a TypedArray<i8>) -> Self
[src]
impl From<TypedArray<u8>> for Vec<u8>
[src]
fn from(array: TypedArray<u8>) -> Self
[src]
impl<'a> From<&'a TypedArray<u8>> for Vec<u8>
[src]
fn from(array: &'a TypedArray<u8>) -> Self
[src]
impl From<TypedArray<i16>> for Vec<i16>
[src]
fn from(array: TypedArray<i16>) -> Self
[src]
impl<'a> From<&'a TypedArray<i16>> for Vec<i16>
[src]
fn from(array: &'a TypedArray<i16>) -> Self
[src]
impl From<TypedArray<u16>> for Vec<u16>
[src]
fn from(array: TypedArray<u16>) -> Self
[src]
impl<'a> From<&'a TypedArray<u16>> for Vec<u16>
[src]
fn from(array: &'a TypedArray<u16>) -> Self
[src]
impl From<TypedArray<i32>> for Vec<i32>
[src]
fn from(array: TypedArray<i32>) -> Self
[src]
impl<'a> From<&'a TypedArray<i32>> for Vec<i32>
[src]
fn from(array: &'a TypedArray<i32>) -> Self
[src]
impl From<TypedArray<u32>> for Vec<u32>
[src]
fn from(array: TypedArray<u32>) -> Self
[src]
impl<'a> From<&'a TypedArray<u32>> for Vec<u32>
[src]
fn from(array: &'a TypedArray<u32>) -> Self
[src]
impl From<TypedArray<f32>> for Vec<f32>
[src]
fn from(array: TypedArray<f32>) -> Self
[src]
impl<'a> From<&'a TypedArray<f32>> for Vec<f32>
[src]
fn from(array: &'a TypedArray<f32>) -> Self
[src]
impl From<TypedArray<f64>> for Vec<f64>
[src]
fn from(array: TypedArray<f64>) -> Self
[src]
impl<'a> From<&'a TypedArray<f64>> for Vec<f64>
[src]
fn from(array: &'a TypedArray<f64>) -> Self
[src]
impl<T: ArrayKind> From<TypedArray<T>> for Reference
[src]
fn from(value: TypedArray<T>) -> Self
[src]
impl<'a, T: ArrayKind> From<&'a [T]> for TypedArray<T>
[src]
impl<T: ArrayKind> From<ArrayBuffer> for TypedArray<T>
[src]
fn from(buffer: ArrayBuffer) -> Self
[src]
impl<'a, T: ArrayKind> From<&'a ArrayBuffer> for TypedArray<T>
[src]
fn from(buffer: &'a ArrayBuffer) -> Self
[src]
impl<T: Debug + ArrayKind> Debug for TypedArray<T>
[src]
Auto Trait Implementations
impl<T> Send for TypedArray<T> where
T: Send,
T: Send,
impl<T> Sync for TypedArray<T> where
T: Sync,
T: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
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]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
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]
T: 'static + ?Sized,