[][src]Struct neon::prelude::JsBuffer

#[repr(C)]pub struct JsBuffer(_);

The Node Buffer type.

Implementations

impl JsBuffer[src]

pub fn new<'a, C: Context<'a>>(cx: &mut C, size: u32) -> JsResult<'a, JsBuffer>[src]

Constructs a new Buffer object, safely zero-filled.

pub unsafe fn uninitialized<'a, C: Context<'a>>(
    cx: &mut C,
    size: u32
) -> JsResult<'a, JsBuffer>
[src]

Constructs a new Buffer object, safely zero-filled.

Trait Implementations

impl<'a> Borrow for &'a JsBuffer[src]

type Target = BinaryData<'a>

The type of the value's internal contents.

impl<'a> Borrow for &'a mut JsBuffer[src]

type Target = BinaryData<'a>

The type of the value's internal contents.

impl<'a> BorrowMut for &'a mut JsBuffer[src]

impl Clone for JsBuffer[src]

impl Copy for JsBuffer[src]

impl Managed for JsBuffer[src]

impl Object for JsBuffer[src]

impl Value for JsBuffer[src]

Auto Trait Implementations

impl RefUnwindSafe for JsBuffer

impl !Send for JsBuffer

impl !Sync for JsBuffer

impl Unpin for JsBuffer

impl UnwindSafe for JsBuffer

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.