Struct neon::types::JsBuffer [−][src]
#[repr(C)]pub struct JsBuffer(_);
Expand description
The Node Buffer
type.
Implementations
Constructs a new Buffer
object, safely zero-filled.
Constructs a new Buffer
object with uninitialized memory
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 JsBuffer
impl UnwindSafe for JsBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more