[−][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]
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.
fn try_from(value: ArrayBuffer) -> Result<Self, Self::Error>
[src]
impl TryFrom<Reference> for ArrayBuffer
[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> TryFrom<&'_r Reference> for ArrayBuffer
[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 TryFrom<Value> for ArrayBuffer
[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> TryFrom<&'_r Value> for ArrayBuffer
[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 InstanceOf for ArrayBuffer
[src]
fn instance_of(reference: &Reference) -> bool
[src]
impl ReferenceType for ArrayBuffer
[src]
unsafe fn from_reference_unchecked(reference: Reference) -> Self
[src]
impl AsRef<Reference> for ArrayBuffer
[src]
impl From<ArrayBuffer> for Reference
[src]
fn from(value: ArrayBuffer) -> Self
[src]
impl From<ArrayBuffer> for Vec<u8>
[src]
fn from(buffer: ArrayBuffer) -> Self
[src]
impl<'a> From<&'a ArrayBuffer> for Vec<u8>
[src]
fn from(buffer: &'a ArrayBuffer) -> Self
[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 Clone for ArrayBuffer
[src]
fn clone(&self) -> ArrayBuffer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Eq for ArrayBuffer
[src]
impl PartialEq<ArrayBuffer> for ArrayBuffer
[src]
fn eq(&self, other: &ArrayBuffer) -> bool
[src]
fn ne(&self, other: &ArrayBuffer) -> bool
[src]
impl Debug for ArrayBuffer
[src]
Auto Trait Implementations
impl Send for ArrayBuffer
impl Sync for ArrayBuffer
impl Unpin for ArrayBuffer
impl UnwindSafe for ArrayBuffer
impl RefUnwindSafe for ArrayBuffer
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,