[][src]Struct stdweb::web::ArrayBuffer

pub struct ArrayBuffer(_);

The ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. You cannot directly manipulate the contents of an ArrayBuffer; instead, you create an TypedArray to do it.

(JavaScript docs)

Methods

impl ArrayBuffer[src]

pub fn new(length: u64) -> Result<Self, TODO>[src]

Creates a new ArrayBuffer with the given length in bytes.

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

Returns the length of the buffer, in bytes.

Trait Implementations

impl JsSerialize for ArrayBuffer[src]

impl TryFrom<ArrayBuffer> for Reference[src]

type Error = Void

The type returned in the event of a conversion error.

impl TryFrom<Reference> for ArrayBuffer[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for ArrayBuffer[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Value> for ArrayBuffer[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for ArrayBuffer[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for ArrayBuffer[src]

impl ReferenceType for ArrayBuffer[src]

impl AsRef<Reference> for ArrayBuffer[src]

impl From<ArrayBuffer> for Reference[src]

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

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

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

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

impl Clone for ArrayBuffer[src]

impl Eq for ArrayBuffer[src]

impl PartialEq<ArrayBuffer> for ArrayBuffer[src]

impl Debug for ArrayBuffer[src]

Auto Trait Implementations

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]