[−][src]Struct opencl_core::kernel::Kernel
Methods
impl Kernel
[src]
pub unsafe fn new(kernel: ClKernel, program: Program) -> Kernel
[src]
pub fn create(program: &Program, name: &str) -> Output<Kernel>
[src]
pub unsafe fn set_arg<T>(&self, arg_index: usize, arg: &mut T) -> Output<()> where
T: KernelArg,
[src]
T: KernelArg,
pub fn function_name(&self) -> Output<String>
[src]
pub fn num_args(&self) -> Output<u32>
[src]
pub fn reference_count(&self) -> Output<u32>
[src]
pub fn context(&self) -> &Context
[src]
pub fn program(&self) -> &Program
[src]
pub fn attributes(&self) -> Output<String>
[src]
pub fn read_lock(&self) -> RwLockReadGuard<ClKernel>
[src]
pub fn write_lock(&self) -> RwLockWriteGuard<ClKernel>
[src]
Trait Implementations
impl Clone for Kernel
[src]
impl Drop for Kernel
[src]
impl Send for Kernel
[src]
impl Sync for Kernel
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,