Skip to main content

FloatBits

Trait FloatBits 

Source
pub trait FloatBits: CubePrimitive + CubeType<ExpandType: FloatBitsExpand<Bits = Self::Bits>> {
    type Bits: CubePrimitive;

    // Provided methods
    fn __expand_from_bits(
        scope: &Scope,
        bits: NativeExpand<Self::Bits>,
    ) -> NativeExpand<Self> { ... }
    fn __expand_to_bits(
        scope: &Scope,
        this: NativeExpand<Self>,
    ) -> NativeExpand<Self::Bits> { ... }
}

Required Associated Types§

Provided Methods§

Source

fn __expand_from_bits( scope: &Scope, bits: NativeExpand<Self::Bits>, ) -> NativeExpand<Self>

Source

fn __expand_to_bits( scope: &Scope, this: NativeExpand<Self>, ) -> NativeExpand<Self::Bits>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FloatBits for bf16

Source§

impl FloatBits for f16

Source§

impl FloatBits for f32

Source§

impl FloatBits for f64

Implementors§