Skip to main content

Module state

Module state 

Source
Expand description

Core iterator-backed ALTREP data adaptors.

Provides IterState<I, T> (the shared lazy-caching state machine) and data-adaptor types for the integer/real/logical/raw ALTREP families: IterIntData, IterRealData, IterLogicalData, IterRawData. The string/list/complex adaptors (IterStringData, IterListData, IterComplexData) live in super::coerce.

See the super module docs for how to expose these adaptors to R: they implement only the data-level traits (AltrepLen + Alt*Data) and must be wrapped in a concrete #[derive(Altrep*)] + #[altrep(manual)] struct to back a live ALTREP vector.

Structsยง

IterIntData
Iterator-backed integer vector data adaptor.
IterLogicalData
Iterator-backed logical vector data adaptor.
IterRawData
Iterator-backed raw (u8) vector data adaptor.
IterRealData
Iterator-backed real (f64) vector data adaptor.
IterState
Core state for iterator-backed ALTREP vectors.