Skip to main content

Module altrep_derive

Module altrep_derive 

Source
Expand description

Derive macros for ALTREP data traits.

These macros auto-implement AltrepLen and Alt*Data traits for simple field-based ALTREP types, reducing boilerplate for users.

Structsยง

AltrepAttrs ๐Ÿ”’
Parsed #[altrep(...)] attributes controlling ALTREP derive code generation.
AltrepFamilyConfig ๐Ÿ”’
Per-family configuration controlling low-level code generation for an ALTREP type family.

Functionsยง

derive_altrep_complex
Derive macro entry point for AltrepComplex.
derive_altrep_generic ๐Ÿ”’
Shared implementation for all non-list ALTREP derive macros.
derive_altrep_integer
Derive macro entry point for AltrepInteger.
derive_altrep_list
Derive macro entry point for AltrepList.
derive_altrep_logical
Derive macro entry point for AltrepLogical.
derive_altrep_raw
Derive macro entry point for AltrepRaw.
derive_altrep_real
Derive macro entry point for AltrepReal.
derive_altrep_string
Derive macro entry point for AltrepString.
generate_altrep_len ๐Ÿ”’
Generates an impl AltrepLen for T block that delegates to a named struct field.