[][src]Struct fil_ocl_core::types::abs::MemMap

#[repr(C)]
pub struct MemMap<T>(_);

A pointer to a region of mapped (pinned) memory.

Methods

impl<T: OclPrm> MemMap<T>[src]

pub unsafe fn from_raw(ptr: *mut T) -> MemMap<T>[src]

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[src]

pub fn as_mut_ptr(&mut self) -> *mut T[src]

pub fn as_void_ptr(&self) -> *mut c_void[src]

Important traits for &'_ [u8]
pub unsafe fn as_slice<'a>(&self, len: usize) -> &'a [T][src]

Important traits for &'_ [u8]
pub unsafe fn as_slice_mut<'a>(&mut self, len: usize) -> &'a mut [T][src]

Trait Implementations

impl<T> AsMem<T> for MemMap<T> where
    T: OclPrm
[src]

impl<T: OclPrm> MemCmdRw for MemMap<T>[src]

impl<'a, T: OclPrm> MemCmdRw for &'a MemMap<T>[src]

impl<'a, T: OclPrm> MemCmdRw for &'a mut MemMap<T>[src]

impl<T: OclPrm> Send for MemMap<T>[src]

impl<T: Debug> Debug for MemMap<T>[src]

Auto Trait Implementations

impl<T> !Sync for MemMap<T>

impl<T> Unpin for MemMap<T>

impl<T> UnwindSafe for MemMap<T> where
    T: RefUnwindSafe

impl<T> RefUnwindSafe for MemMap<T> where
    T: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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