Skip to main content

Module naming

Module naming 

Source
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_all transformation 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>, or C_<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 &str holding 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 a syn::Ident for Rust token generation.
trait_member_c_wrapper_string πŸ”’
C_<crate>_<Type>__<Trait>__<member> as a String β€” shared by TraitMethod and TraitConst, 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.