Skip to main content

KernelTraitConst

Trait KernelTraitConst 

Source
pub trait KernelTraitConst {
    // Required method
    fn as_raw_Kernel(&self) -> *const c_void;

    // Provided methods
    fn empty(&self) -> Result<bool> { ... }
    fn work_group_size(&self) -> Result<size_t> { ... }
    fn prefered_work_group_size_multiple(&self) -> Result<size_t> { ... }
    fn compile_work_group_size(&self, wsz: &mut [size_t]) -> Result<bool> { ... }
    fn local_mem_size(&self) -> Result<size_t> { ... }
    fn ptr(&self) -> Result<*mut c_void> { ... }
}
Expand description

Constant methods for core::Kernel

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§