#[repr(C)]pub struct MemMap<T>(_);
Expand description
A pointer to a region of mapped (pinned) memory.
Implementations
sourceimpl<T: OclPrm> MemMap<T>
impl<T: OclPrm> MemMap<T>
sourcepub unsafe fn from_raw(ptr: *mut T) -> MemMap<T>
pub unsafe fn from_raw(ptr: *mut T) -> MemMap<T>
Only call this when passing the original newly created pointer
directly from clCreate...
. Do not use this to clone or copy.
pub fn as_ptr(&self) -> *const T
pub fn as_mut_ptr(&mut self) -> *mut T
pub fn as_void_ptr(&self) -> *mut c_void
pub unsafe fn as_slice<'a>(&self, len: usize) -> &'a [T] ⓘ
pub unsafe fn as_slice_mut<'a>(&mut self, len: usize) -> &'a mut [T] ⓘ
Trait Implementations
impl<'a, T: OclPrm> MemCmdRw for &'a MemMap<T>
impl<'a, T: OclPrm> MemCmdRw for &'a mut MemMap<T>
impl<T: OclPrm> MemCmdRw for MemMap<T>
impl<T: OclPrm> Send for MemMap<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for MemMap<T>where
T: RefUnwindSafe,
impl<T> !Sync for MemMap<T>
impl<T> Unpin for MemMap<T>
impl<T> UnwindSafe for MemMap<T>where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more