Expand description
Core ALTREP types and registration traits.
§Architecture
- FFI: Raw setters/types in
crate::ffi::altrep - Traits: Safe traits in
crate::altrep_traits(Altrep,AltVec,AltInteger, etc.)- Required methods: Compiler-enforced by trait definition
- Optional methods: Gated by HAS_* constants, defaults provided
- Bridge: Generic
extern "C-unwind"trampolines incrate::altrep_bridge - Macro:
#[miniextendr]on a struct emitsimpl RegisterAltrepthat:- Creates the class handle via
R_make_alt* - Installs methods based on trait bounds and HAS_* consts
- Creates the class handle via
Enums§
- RBase
- Base type for ALTREP vectors.
Statics§
- REGISTERED_
CLASS_ 🔒NAMES - Records every ALTREP class name registered during
package_init().
Traits§
- Altrep
Class - Trait implemented by ALTREP classes via
#[miniextendr]. - Register
Altrep - Registration trait: implemented per type by the macro on struct items.
Functions§
- assert_
altrep_ class_ uniqueness - Assert that all registered ALTREP class names are unique.
- make_
class_ ⚠by_ base - Create an ALTREP class handle based on the runtime base type.
- validate_
altrep_ class - Validate that an ALTREP class handle was successfully created.