Skip to main content

Module altrep

Module altrep 

Source
Expand description

ALTREP marker type (Altrep<T> / Lazy<T>).

Wrapping a value in Altrep(value) opts into ALTREP representation instead of eager copy when returned from a #[miniextendr] function.

Lazy<T> is a type alias for Altrep<T> — use whichever reads better.

Structs§

Altrep

Type Aliases§

Lazy
Marker type to opt-in to ALTREP representation for types that have both eager-copy and ALTREP implementations.