fn expand_struct(
attr: TokenStream,
item: TokenStream,
item_struct: &ItemStruct,
) -> TokenStreamExpand description
Dispatches #[miniextendr] on a struct to the correct derive path.
Decision logic:
- 1-field struct with ALTREP attrs (
class/base): compile error with migration guidance (ALTREP via#[miniextendr]is removed — use the#[derive(Altrep*)]family) - Explicit
listmode:IntoList+TryFromList+PreferList - Explicit
dataframemode:IntoList+DataFrameRow+ companionIntoR - Default multi-field or explicit
externalptr:ExternalPtr prefer = "native":ExternalPtr(without theIntoExternalPtrmarker, #1283) +PreferRNativeTypemarker