[−][src]Struct stdweb::web::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.
Methods
impl ArrayBuffer
[src]
impl ArrayBuffer
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 JsSerialize for ArrayBuffer
impl TryFrom<ArrayBuffer> for Reference
[src]
impl TryFrom<ArrayBuffer> for Reference
type Error = Void
The type returned in the event of a conversion error.
fn try_from(value: ArrayBuffer) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Reference> for ArrayBuffer
[src]
impl TryFrom<Reference> for ArrayBuffer
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> TryFrom<&'_r Reference> for ArrayBuffer
[src]
impl<'_r> TryFrom<&'_r Reference> for ArrayBuffer
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(reference: &Reference) -> Result<Self, Self::Error> | [src] |
impl TryFrom<Value> for ArrayBuffer
[src]
impl TryFrom<Value> for ArrayBuffer
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> TryFrom<&'_r Value> for ArrayBuffer
[src]
impl<'_r> TryFrom<&'_r Value> for ArrayBuffer
type Error = ConversionError
The type returned in the event of a conversion error.
fn try_from(value: &Value) -> Result<Self, Self::Error> | [src] |
impl InstanceOf for ArrayBuffer
[src]
impl InstanceOf for ArrayBuffer
fn instance_of(reference: &Reference) -> bool | [src] |
impl ReferenceType for ArrayBuffer
[src]
impl ReferenceType for ArrayBuffer
unsafe fn from_reference_unchecked(reference: Reference) -> Self | [src] |
impl From<ArrayBuffer> for Reference
[src]
impl From<ArrayBuffer> for Reference
fn from(value: ArrayBuffer) -> Self | [src] |
impl From<ArrayBuffer> for Vec<u8>
[src]
impl From<ArrayBuffer> for Vec<u8>
fn from(buffer: ArrayBuffer) -> Self | [src] |
impl<'a> From<&'a ArrayBuffer> for Vec<u8>
[src]
impl<'a> From<&'a ArrayBuffer> for Vec<u8>
fn from(buffer: &'a ArrayBuffer) -> Self | [src] |
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 Eq for ArrayBuffer
[src]
impl Eq for ArrayBuffer
impl PartialEq<ArrayBuffer> for ArrayBuffer
[src]
impl PartialEq<ArrayBuffer> for ArrayBuffer
fn eq(&self, other: &ArrayBuffer) -> bool | [src] |
fn ne(&self, other: &ArrayBuffer) -> bool | [src] |
impl AsRef<Reference> for ArrayBuffer
[src]
impl AsRef<Reference> for ArrayBuffer
impl Clone for ArrayBuffer
[src]
impl Clone for ArrayBuffer
fn clone(&self) -> ArrayBuffer | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl Debug for ArrayBuffer
[src]
impl Debug for ArrayBuffer
Auto Trait Implementations
impl Send for ArrayBuffer
impl Send for ArrayBuffer
impl Sync for ArrayBuffer
impl Sync for ArrayBuffer
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<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] |