[][src]Struct rocks::slice::PinnableSlice

pub struct PinnableSlice { /* fields omitted */ }

A Slice that can be pinned with some cleanup tasks, which will be run upon ::Reset() or object destruction, whichever is invoked first. This can be used to avoid memcpy by having the PinnsableSlice object referring to the data that is locked in the memory and release them after the data is consuned.

Implementations

impl PinnableSlice[src]

pub fn new() -> PinnableSlice[src]

pub fn data(&self) -> *const u8[src]

pub fn size(&self) -> usize[src]

Trait Implementations

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

impl Debug for PinnableSlice[src]

impl Default for PinnableSlice[src]

impl Deref for PinnableSlice[src]

type Target = [u8]

The resulting type after dereferencing.

impl Drop for PinnableSlice[src]

impl<'a> PartialEq<&'a [u8]> for PinnableSlice[src]

impl<'a, 'b> PartialEq<&'b [u8]> for &'a PinnableSlice[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> 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.