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/complex adaptors live in super::coerce; the rooted list adaptor
lives in super::list.
See the iterator-adaptor section in the altrep_data
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.
Re-exportsยง
use super::macros::define_iter_data;๐use std::cell::RefCell;๐use std::sync::OnceLock;๐use crate::altrep_data::AltIntegerData;๐use crate::altrep_data::AltLogicalData;๐use crate::altrep_data::AltRawData;๐use crate::altrep_data::AltRealData;๐use crate::altrep_data::AltrepLen;๐use crate::altrep_data::Logical;๐
Structsยง
- Iter
IntData - Iterator-backed integer vector data adaptor.
- Iter
Logical Data - Iterator-backed logical vector data adaptor.
- IterR
Logical Data - Iterator-backed logical data retaining Rโs native logical bit patterns.
- Iter
RawData - Iterator-backed raw (u8) vector data adaptor.
- Iter
Real Data - Iterator-backed real (f64) vector data adaptor.
- Iter
State - Core state for iterator-backed ALTREP vectors.