pub unsafe trait KernelPtr: Sized {
// Required method
unsafe fn kernel_ptr(&self) -> cl_kernel;
// Provided methods
unsafe fn info<T: Copy>(&self, flag: KernelInfo) -> Output<ClPointer<T>> { ... }
unsafe fn function_name(&self) -> Output<String> { ... }
unsafe fn num_args(&self) -> Output<u32> { ... }
unsafe fn reference_count(&self) -> Output<u32> { ... }
unsafe fn context(&self) -> Output<ClContext> { ... }
unsafe fn program(&self) -> Output<ClProgram> { ... }
unsafe fn attributes(&self) -> Output<String> { ... }
}
Required Methods§
unsafe fn kernel_ptr(&self) -> cl_kernel
Provided Methods§
unsafe fn info<T: Copy>(&self, flag: KernelInfo) -> Output<ClPointer<T>>
unsafe fn function_name(&self) -> Output<String>
Sourceunsafe fn reference_count(&self) -> Output<u32>
unsafe fn reference_count(&self) -> Output<u32>
Returns the OpenCL reference count of the kernel.
unsafe fn context(&self) -> Output<ClContext>
unsafe fn program(&self) -> Output<ClProgram>
unsafe fn attributes(&self) -> Output<String>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.