[][src]Struct deno_core::ZeroCopyBuf

pub struct ZeroCopyBuf { /* fields omitted */ }

A ZeroCopyBuf encapsulates a slice that's been borrowed from a JavaScript ArrayBuffer object. JavaScript objects can normally be garbage collected, but the existence of a ZeroCopyBuf inhibits this until it is dropped. It behaves much like an Arc<u8>, although a ZeroCopyBuf currently can't be cloned.

Implementations

impl ZeroCopyBuf[src]

pub fn new(view: Local<ArrayBufferView>) -> Self[src]

Trait Implementations

impl AsMut<[u8]> for ZeroCopyBuf[src]

impl AsRef<[u8]> for ZeroCopyBuf[src]

impl Deref for ZeroCopyBuf[src]

type Target = [u8]

The resulting type after dereferencing.

impl DerefMut for ZeroCopyBuf[src]

impl Send for ZeroCopyBuf[src]

Auto Trait Implementations

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

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

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

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.