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, safely zero-filled.
Trait Implementations
type Target = BinaryData<'a>
type Target = BinaryData<'a>
The type of the value’s internal contents.
Borrow the contents of this value immutably. Read more
type Target = BinaryData<'a>
type Target = BinaryData<'a>
The type of the value’s internal contents.
Borrow the contents of this value immutably. Read more
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>
Auto Trait Implementations
impl RefUnwindSafe for JsBuffer
impl UnwindSafe for JsBuffer
Blanket Implementations
Mutably borrows from an owned value. Read more