pub trait Reinterpret: CubePrimitive {
    // Provided methods
    fn reinterpret<From: CubePrimitive>(value: From) -> Self { ... }
    fn __expand_reinterpret<From: CubePrimitive>(
        scope: &mut Scope,
        value: ExpandElementTyped<From>,
    ) -> <Self as CubeType>::ExpandType { ... }
}Expand description
Enables reinterpetring the bits from any value to any other type of the same size.
Provided Methods§
Sourcefn reinterpret<From: CubePrimitive>(value: From) -> Self
 
fn reinterpret<From: CubePrimitive>(value: From) -> Self
Reinterpret the bits of another primitive as this primitive without conversion.
fn __expand_reinterpret<From: CubePrimitive>( scope: &mut Scope, value: ExpandElementTyped<From>, ) -> <Self as CubeType>::ExpandType
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.