[−][src]Struct rocks::slice::PinnableSlice
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]
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
impl RefUnwindSafe for PinnableSlice
impl !Send for PinnableSlice
impl !Sync for PinnableSlice
impl Unpin for PinnableSlice
impl UnwindSafe for PinnableSlice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,