pub trait ScalarArgSettings:
Send
+ Sync
+ CubePrimitive {
// Required method
fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>);
// Provided method
fn expand_scalar(
_: &ScalarCompilationArg<Self>,
builder: &mut KernelBuilder,
) -> ExpandElementTyped<Self> { ... }
}Expand description
Similar to ArgSettings, however only for scalar types that don’t depend on the Runtime trait.
Required Methods§
Sourcefn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>)
fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>)
Register the information to the KernelLauncher.
Provided Methods§
fn expand_scalar( _: &ScalarCompilationArg<Self>, builder: &mut KernelBuilder, ) -> ExpandElementTyped<Self>
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.