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_
altcomplex_ 🔒slice AltComplexDatafor any container that derefs to[Rcomplex].- impl_
altinteger_ 🔒slice AltIntegerDatafor any container that derefs to[i32].- impl_
altlogical_ 🔒native_ slice AltLogicalDatafor R-native logical slices, including NA and raw values.- impl_
altlogical_ 🔒slice AltLogicalDatafor any container that derefs to[bool].boolcan’t be NA.- impl_
altraw_ 🔒slice AltRawDatafor any container that derefs to[u8]. Raw has no NA.- impl_
altreal_ 🔒slice AltRealDatafor any container that derefs to[f64].- impl_
dataptr_ 🔒array - 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_
owned_ 🔒str_ altrep_ data - impl_
serialize 🔒 - Implement AltrepSerialize for types that can be cloned and converted to/from R.
- impl_
shared_ 🔒slice_ data - impl_
shared_ 🔒slice_ dataptr
Functions§
- real_
slice_ 🔒extreme min/maxfor a double slice, following R’srmin/rmax.- real_
slice_ 🔒no_ na no_nafor a double slice:trueonly when no element isNAorNaN.- real_
slice_ 🔒sum sumfor a double slice, following R’srsum.