Skip to main content

is_altrep_struct

Function is_altrep_struct 

Source
pub fn is_altrep_struct(item: &ItemStruct) -> bool
Expand description

Check if a struct with #[miniextendr] should be treated as ALTREP (needing struct Name; in module).

Returns true only for 1-field structs without explicit mode attrs (list, dataframe, externalptr). Multi-field structs, structs with explicit mode attrs, and enums don’t need module entries.