Trait cubecl_core::frontend::BitCast
source · pub trait BitCast: CubePrimitive {
// Provided methods
fn bitcast_from<From: CubePrimitive>(value: From) -> Self { ... }
fn __expand_bitcast_from<From>(
context: &mut CubeContext,
value: From,
) -> <Self as CubeType>::ExpandType
where From: Into<ExpandElement> { ... }
}
Expand description
Enables reinterpet-casting/bitcasting from any floating point value to any integer value and vice versa
Provided Methods§
sourcefn bitcast_from<From: CubePrimitive>(value: From) -> Self
fn bitcast_from<From: CubePrimitive>(value: From) -> Self
Reinterpret the bits of another primitive as this primitive without conversion.
fn __expand_bitcast_from<From>(
context: &mut CubeContext,
value: From,
) -> <Self as CubeType>::ExpandTypewhere
From: Into<ExpandElement>,
Object Safety§
This trait is not object safe.