cubecl_core::frontend

Trait Min

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

Provided Methods§

Source

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

Source

fn __expand_min( 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 Min for f32

Source§

impl Min for f64

Source§

impl Min for i32

Source§

impl Min for i64

Source§

impl Min for u32

Source§

impl Min for bf16

Source§

impl Min for f16

Implementors§

Source§

impl<P: CubePrimitive + Min> Min for Line<P>