Skip to main content

s4_generic_name

Function s4_generic_name 

Source
pub(crate) fn s4_generic_name(method: &ParsedMethod) -> String
Expand description

The S4 generic an instance method dispatches through: an explicit s4(generic = "...") verbatim, else s4_<R method name>, so r_name, postfix and raw identifiers follow the usual naming rules. Shared by the generator and check_s4_generic_collisions, so both agree on the names.