Trait DialectBindings

Source
pub trait DialectBindings<D: Dialect> {
    // Required method
    fn compile_kernel_signature(
        f: &mut Formatter<'_>,
        kernel_name: &str,
        tensor_maps: &[Id],
        buffers: &[Binding<D>],
        scalars: &[(Elem<D>, usize)],
        flags: &Flags,
    ) -> Result;

    // Provided method
    fn compile_bindings_body(_f: &mut Formatter<'_>, _body: &Body<D>) -> Result { ... }
}

Required Methods§

Source

fn compile_kernel_signature( f: &mut Formatter<'_>, kernel_name: &str, tensor_maps: &[Id], buffers: &[Binding<D>], scalars: &[(Elem<D>, usize)], flags: &Flags, ) -> Result

Provided Methods§

Source

fn compile_bindings_body(_f: &mut Formatter<'_>, _body: &Body<D>) -> Result

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.

Implementors§