Skip to main content

Module type_seam

Module type_seam 

Source
Expand description

GpuScalar — marker trait for Rust scalar types that round-trip through GPU column storage.

The trait is pub because external crates call turbofish generics bounded by it (e.g. provider.download_column::<u32>()), and Rust’s private_bounds lint requires trait bounds on pub functions to be pub. However, the trait is sealed: external crates cannot add new implementations.

§Bool encoding

Write encoding (H2D): canonical 0x00 = false, 0x01 = true. Read decoding (D2H): 0x00 = false, any nonzero byte = true.

The asymmetry is intentional: we always write canonical values, but tolerate non-canonical GPU output during reads to match existing provider behavior.

Traits§

GpuScalar
Marker trait: a Rust scalar type that can round-trip through GPU column storage.