Expand description
Built-in ALTREP data implementations for standard Rust types.
Provides AltIntegerData, AltRealData, AltLogicalData, AltRawData,
AltStringData, and AltComplexData implementations for:
Vec<T>— owned vector (most common)Box<[T]>— boxed sliceRange<T>— lazy arithmetic sequences (integer, real)&'static [T]— borrowed slices (zero-copy from static data)[T; N]— fixed-size arrays
Macros§
- impl_
dataptr_ 🔒boxed - Implement AltrepDataptr for Box<[$elem]> (types with direct memory access)
- impl_
dataptr_ 🔒cow - impl_
dataptr_ 🔒vec - Implement AltrepDataptr for Vec<$elem> (types with direct memory access)
- impl_
len_ 🔒array - Implement AltrepLen for [$elem; N]
- impl_
len_ 🔒boxed - Implement AltrepLen for Box<[$elem]>
- impl_
len_ 🔒cow - impl_
len_ 🔒slice - Implement AltrepLen for &[$elem]
- impl_
len_ 🔒vec - Implement AltrepLen for Vec<$elem>
- impl_
serialize 🔒 - Implement AltrepSerialize for types that can be cloned and converted to/from R.
- impl_
serialize_ 🔒cow