Trait LaunchArg

Source
pub trait LaunchArg:
    LaunchArgExpand
    + Send
    + Sync
    + 'static {
    type RuntimeArg<'a, R: Runtime>: ArgSettings<R>;

    // Required method
    fn compilation_arg<R: Runtime>(
        runtime_arg: &Self::RuntimeArg<'_, R>,
    ) -> Self::CompilationArg;
}
Expand description

Defines a type that can be used as argument to a kernel.

Required Associated Types§

Source

type RuntimeArg<'a, R: Runtime>: ArgSettings<R>

The runtime argument for the kernel.

Required Methods§

Source

fn compilation_arg<R: Runtime>( runtime_arg: &Self::RuntimeArg<'_, R>, ) -> Self::CompilationArg

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.

Implementations on Foreign Types§

Source§

impl LaunchArg for ()

Source§

type RuntimeArg<'a, R: Runtime> = ()

Source§

fn compilation_arg<'a, R: Runtime>( _runtime_arg: &'a Self::RuntimeArg<'a, R>, ) -> Self::CompilationArg

Implementors§