Struct neon::types::JsArrayBuffer [−][src]
#[repr(C)]pub struct JsArrayBuffer(_);
Expand description
The standard JS ArrayBuffer
type.
Implementations
Constructs a new JsArrayBuffer
object, safely zero-filled.
Trait Implementations
fn get<'a, C: Context<'a>, K: PropertyKey>(
self,
cx: &mut C,
key: K
) -> NeonResult<Handle<'a, JsValue>>
This is supported on crate feature
napi-6
only.fn set<'a, C: Context<'a>, K: PropertyKey, W: Value>(
self,
cx: &mut C,
key: K,
val: Handle<'_, W>
) -> NeonResult<bool>
Statically checked immutable borrow of binary data. Read more
Statically checked mutable borrow of binary data. Read more
fn try_borrow<'a: 'b, 'b, C>(
&self,
lock: &'b Lock<'b, C>
) -> Result<Ref<'b, Self::Item>, BorrowError> where
C: Context<'a>,
fn try_borrow<'a: 'b, 'b, C>(
&self,
lock: &'b Lock<'b, C>
) -> Result<Ref<'b, Self::Item>, BorrowError> where
C: Context<'a>,
Dynamically checked immutable borrow of binary data, returning an error if the the borrow would overlap with a mutable borrow. Read more
fn try_borrow_mut<'a: 'b, 'b, C>(
&mut self,
lock: &'b Lock<'b, C>
) -> Result<RefMut<'b, Self::Item>, BorrowError> where
C: Context<'a>,
fn try_borrow_mut<'a: 'b, 'b, C>(
&mut self,
lock: &'b Lock<'b, C>
) -> Result<RefMut<'b, Self::Item>, BorrowError> where
C: Context<'a>,
Dynamically checked mutable borrow of binary data, returning an error if the the borrow would overlap with an active borrow. Read more
Auto Trait Implementations
impl RefUnwindSafe for JsArrayBuffer
impl !Send for JsArrayBuffer
impl !Sync for JsArrayBuffer
impl Unpin for JsArrayBuffer
impl UnwindSafe for JsArrayBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more