Skip to main content

Module stream

Module stream 

Source
Expand description

Streaming ALTREP data adaptors backed by chunk-cached reader closures.

These types provide backing data for ALTREP vectors where elements are loaded on-demand from a reader function in fixed-size chunks. Chunks are cached for repeated access within the same region.

Like the iter adaptors, these implement only the data-level traits (AltrepLen + Alt*Data); to expose one to R, wrap it in a concrete #[derive(Altrep*)] + #[altrep(manual)] struct that delegates the data-trait methods (see the iter module docs for the pattern).

Structsยง

StreamingIntData
Streaming data adaptor for ALTREP integer (i32) vectors.
StreamingRealData
Streaming data adaptor for ALTREP real (f64) vectors.