Trait KernelArg

Source
pub unsafe trait KernelArg {
    // Required methods
    fn kernel_arg_size(&self) -> usize;
    unsafe fn kernel_arg_ptr(&self) -> *const c_void;
    unsafe fn kernel_arg_mut_ptr(&mut self) -> *mut c_void;
}

Required Methods§

Source

fn kernel_arg_size(&self) -> usize

size_of or size_of * len

Source

unsafe fn kernel_arg_ptr(&self) -> *const c_void

Source

unsafe fn kernel_arg_mut_ptr(&mut self) -> *mut c_void

Implementations on Foreign Types§

Source§

impl KernelArg for f32

Source§

impl KernelArg for f64

Source§

impl KernelArg for i8

Source§

impl KernelArg for i16

Source§

impl KernelArg for i32

Source§

impl KernelArg for i64

Source§

impl KernelArg for isize

Source§

impl KernelArg for u8

Source§

impl KernelArg for u16

Source§

impl KernelArg for u32

Source§

impl KernelArg for u64

Source§

impl KernelArg for usize

Implementors§