Skip to main content

MX_CLASS_NAMES

Static MX_CLASS_NAMES 

Source
pub static MX_CLASS_NAMES: DistributedSlice<[ClassNameEntry]>
Expand description

Class name entries mapping Rust type names to R-visible class names. Host-only.

Each #[miniextendr] impl block emits an entry. During write_r_wrappers_to_file, the .__MX_CLASS_REF_*<RustName>__ placeholders other expansions write where they name the class (see resolve_class_refs) are replaced with the registered R class name (which may differ when class = "Override" is set on the impl block). Package load reads it too: call_defs leaves out the sidecar setters of a type whose entry has ClassNameEntry::read_only_fields (#2292).