Skip to main content

r_generic_to_method

Function r_generic_to_method 

Source
pub const fn r_generic_to_method(generic: &str) -> Option<&'static str>
Expand description

Maps an R generic name to the corresponding trait method name.

This is used by the proc-macro to validate #[miniextendr(as = "...")] attributes.

ยงReturns

The Rust method name that corresponds to the R generic, or None if the generic is not supported.