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§
Sourcetype RuntimeArg<'a, R: Runtime>: ArgSettings<R>
type RuntimeArg<'a, R: Runtime>: ArgSettings<R>
The runtime argument for the kernel.
Required Methods§
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.