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

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]

Creates a new ArrayBuffer with the given length in bytes.

Returns the length of the buffer, in bytes.

Trait Implementations

impl Clone for ArrayBuffer
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ArrayBuffer
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ArrayBuffer
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ArrayBuffer
[src]

impl InstanceOf for ArrayBuffer
[src]

Checks whenever a given Reference if of type Self.

impl AsRef<Reference> for ArrayBuffer
[src]

Performs the conversion.

impl ReferenceType for ArrayBuffer
[src]

Converts a given reference into a concrete reference-like wrapper. Doesn't do any type checking; highly unsafe to use! Read more

impl From<ArrayBuffer> for Reference
[src]

Performs the conversion.

impl TryFrom<ArrayBuffer> for Reference
[src]

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Reference> for ArrayBuffer
[src]

The type returned in the event of a conversion error.

Performs the conversion.

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

The type returned in the event of a conversion error.

Performs the conversion.

impl TryFrom<Value> for ArrayBuffer
[src]

The type returned in the event of a conversion error.

Performs the conversion.

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

The type returned in the event of a conversion error.

Performs the conversion.

impl JsSerialize for ArrayBuffer
[src]

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

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

Performs the conversion.

Auto Trait Implementations

impl Send for ArrayBuffer

impl Sync for ArrayBuffer