pub trait KernelArgument {
    // Required method
    fn push(&self, kernel: &mut Kernel<'_>);
}
Expand description

Abstraction for kernel arguments.

The kernel doesn’t support being called with custom types, hence some conversion might be needed. This trait enables automatic coversions, so that any type implementing it can be passed into a Kernel.

Required Methods§

source

fn push(&self, kernel: &mut Kernel<'_>)

Apply the kernel argument to the kernel.

Implementations on Foreign Types§

source§

impl KernelArgument for u32

source§

fn push(&self, kernel: &mut Kernel<'_>)

source§

impl KernelArgument for i32

source§

fn push(&self, kernel: &mut Kernel<'_>)

Implementors§