FloatBits

Trait FloatBits 

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

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

Required Associated Types§

Provided Methods§

Source

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

Source

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

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 FloatBits for f32

Source§

impl FloatBits for f64

Source§

impl FloatBits for bf16

Source§

impl FloatBits for f16

Implementors§