Skip to main content

PushKernelArg

Trait PushKernelArg 

Source
pub trait PushKernelArg {
    // Required method
    fn push_to(self, params: &mut KernelParameters<'_>);
}
Expand description

Appends a value to a CUDA kernel parameter list.

Implementations convert Rust wrapper types into the value a CUDA kernel sees at the ABI boundary, such as a scalar or device pointer.

Required Methods§

Source

fn push_to(self, params: &mut KernelParameters<'_>)

Appends this value in the kernel ABI representation selected by its implementation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl PushKernelArg for f32

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for f64

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for i8

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for i16

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for i32

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for i64

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for i128

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for isize

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for u8

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for u16

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for u32

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for u64

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for u128

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Source§

impl PushKernelArg for usize

Source§

fn push_to(self, params: &mut KernelParameters<'_>)

Implementors§