Trait cubecl_cuda::compiler::binary::Binary

source ·
pub trait Binary {
    // Required method
    fn format_scalar<Lhs, Rhs, Out>(
        f: &mut Formatter<'_>,
        lhs: Lhs,
        rhs: Rhs,
        out: Out,
        elem: Elem,
    ) -> Result
       where Lhs: Component,
             Rhs: Component,
             Out: Component;

    // Provided methods
    fn format(
        f: &mut Formatter<'_>,
        lhs: &Variable,
        rhs: &Variable,
        out: &Variable,
    ) -> Result { ... }
    fn unroll_vec(
        f: &mut Formatter<'_>,
        lhs: &Variable,
        rhs: &Variable,
        out: &Variable,
        elem: Elem,
        index: usize,
    ) -> Result { ... }
}

Required Methods§

source

fn format_scalar<Lhs, Rhs, Out>( f: &mut Formatter<'_>, lhs: Lhs, rhs: Rhs, out: Out, elem: Elem, ) -> Result
where Lhs: Component, Rhs: Component, Out: Component,

Provided Methods§

source

fn format( f: &mut Formatter<'_>, lhs: &Variable, rhs: &Variable, out: &Variable, ) -> Result

source

fn unroll_vec( f: &mut Formatter<'_>, lhs: &Variable, rhs: &Variable, out: &Variable, elem: Elem, index: usize, ) -> Result

Object Safety§

This trait is not object safe.

Implementors§