Skip to main content

class_ref

pub(super) fn class_ref(class_system: ClassSystem, type_ident: &Ident) -> String
Expand description

How the trait wrappers of class_system name the class of type_ident: its R name, which a class = "..." rename on the type’s impl block sets, resolved when the wrappers are written (#2266, class_ref_for). Used for every R object the trait impl attaches to or wraps in (S3 method suffixes and registrations, the Class$Trait namespace, the S4 method signature, the S7 class object, a Self return). Rust-side names (C symbols, the S7 and S4 flat member names) and the @rdname page keep the Rust identifier.