Skip to main content

Module coerce

Module coerce 

Source
Expand description

Iterator-backed ALTREP data adaptors with coercion support.

Provides IterIntCoerceData, IterRealCoerceData, and IterIntFromBoolData for iterators that produce values coercible to the target R type, plus the string/list/complex adaptors (IterStringData, IterListData, IterComplexData).

See the super module docs for how to expose these adaptors to R (wrap in a #[derive(Altrep*)] + #[altrep(manual)] struct).

Structsยง

IterComplexData
Iterator-backed complex number vector data adaptor.
IterIntCoerceData
Iterator-backed integer vector data adaptor with coercion from any integer-like type.
IterIntFromBoolData
Iterator-backed integer vector data adaptor with coercion from bool.
IterListData
Iterator-backed list vector data adaptor.
IterRealCoerceData
Iterator-backed real vector data adaptor with coercion from any float-like type.
IterStringData
Iterator-backed string vector data adaptor.