Skip to main content

ScalarArgSettings

Trait ScalarArgSettings 

Source
pub trait ScalarArgSettings:
    Send
    + Sync
    + RudaPrimitive {
    // Required method
    fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>);

    // Provided method
    fn expand_scalar(builder: &mut KernelBuilder) -> NativeExpand<Self> { ... }
}
Expand description

Similar to [ArgSettings], however only for scalar types that don’t depend on the Runtime trait.

Required Methods§

Source

fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>)

Register the information to the KernelLauncher.

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ScalarArgSettings for isize

Source§

fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>)

Source§

impl ScalarArgSettings for usize

Source§

fn register<R: Runtime>(&self, launcher: &mut KernelLauncher<R>)

Implementors§

Source§

impl<E: ScalarArgType> ScalarArgSettings for E

Source§

impl<Marker: 'static> ScalarArgSettings for DynamicScalar<Marker>