pub(super) fn generate_trait_const_c_wrapper(
trait_const: &TraitConst,
type_ident: &Ident,
trait_name: &Ident,
trait_path: &Path,
) -> TokenStreamExpand description
Generate a C wrapper function and R_CallMethodDef for a trait associated constant.
The generated wrapper takes no arguments and returns the constant value
converted to SEXP. Uses fully-qualified syntax <Type as Trait>::CONST
to access the value. Always runs on the main thread.