Expand description
Naming helpers for the static symbols the #[miniextendr] attribute emits.
These formatters live in one place so the attribute macro and any later
consumer (e.g. a registration-chasing linter) can compute the exact same
identifiers from a source syn::Ident.
FunctionsΒ§
- altrep_
reg_ πfn_ ident __mx_altrep_reg_<crate>_<Ident>β ALTREP class registration fn.- apply_
rename_ πall - Apply a
rename_alltransformation to a variant name. - bare_
fn_ πc_ wrapper_ ident C_<crate>_<fn>β bare-fn C wrapper identifier (internal-wrapper arm only;extern/#[export_name]fns pass through untouched and own their own cross-package uniqueness).- crate_
prefix π - The consuming crateβs name, used as the prefix for every macro-emitted
#[no_mangle]C symbol. - impl_
method_ πc_ wrapper_ ident C_<crate>_<Type>__<method>, orC_<crate>_<Type>_<label>_<method>when the impl block carries a label β impl-method C wrapper identifier.- r_
wrapper_ πconst_ ident_ for - Identifier for the generated
const &strholding the R wrapper source. - sidecar_
getter_ πc_ name C_<crate>__mx_rdata_get_<Type>_<field>β sidecar field getter C symbol.- sidecar_
setter_ πc_ name C_<crate>__mx_rdata_set_<Type>_<field>β sidecar field setter C symbol.- to_
kebab_ πcase - Convert a PascalCase string to kebab-case (
InProgressβin-progress). - to_
snake_ πcase - Convert a PascalCase string to snake_case.
- trait_
member_ πc_ wrapper_ ident - Same as
trait_member_c_wrapper_string, as asyn::Identfor Rust token generation. - trait_
member_ πc_ wrapper_ string C_<crate>_<Type>__<Trait>__<member>as aStringβ shared byTraitMethodandTraitConst, and by both the ident and string forms each needs, so the format string canβt drift across the four call sites that used to duplicate it.- vtable_
static_ πident __VTABLE_<CRATE>_<TRAIT>_FOR_<TYPE>β trait-impl vtable static.- vtshim_
ident π __vtshim_<crate>_<Type>__<Trait>__<method>β trait-impl vtable shim fn.