cubecl_core::frontend

Trait Remainder

Source
pub trait Remainder: CubeType + Sized {
    // Provided methods
    fn rem(self, _rhs: Self) -> Self { ... }
    fn __expand_rem(
        context: &mut CubeContext,
        lhs: ExpandElementTyped<Self>,
        rhs: ExpandElementTyped<Self>,
    ) -> ExpandElementTyped<Self> { ... }
}

Provided Methods§

Source

fn rem(self, _rhs: Self) -> Self

Source

fn __expand_rem( context: &mut CubeContext, lhs: ExpandElementTyped<Self>, rhs: ExpandElementTyped<Self>, ) -> 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.

Implementations on Foreign Types§

Source§

impl Remainder for f32

Source§

impl Remainder for f64

Source§

impl Remainder for i32

Source§

impl Remainder for i64

Source§

impl Remainder for u32

Source§

impl Remainder for bf16

Source§

impl Remainder for f16

Implementors§