Trait cubecl_core::frontend::CubePrimitive

source ·
pub trait CubePrimitive:
    CubeType<ExpandType = ExpandElementTyped<Self>>
    + Vectorized
    + Eq
    + PartialEq
    + Send
    + Sync
    + 'static
    + Clone
    + Copy {
    // Required method
    fn as_elem() -> Elem;

    // Provided method
    fn from_expand_elem(elem: ExpandElement) -> Self::ExpandType { ... }
}
Expand description

Form of CubeType that encapsulates all primitive types: Numeric, UInt, Bool

Required Methods§

source

fn as_elem() -> Elem

Return the element type to use on GPU

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§