pub(crate) fn class_ref_for(system: ClassSystem, name: &str) -> StringExpand description
The R name of the class that system wraps a value in, for the Rust type
name, in an expansion other than the class’s own impl block (a
WrapAs* return, a trait impl): a write-time placeholder the wrappers
writer resolves through MX_CLASS_NAMES, so a class = "..." rename
applies there too (#2265, #2266). The class system stays the caller’s;
only the name comes from the registry.
A type with no impl block keeps its Rust name. Where any string is a class
(S3, Env, vctrs) that is quiet, .__MX_CLASS_REF_OR_BARE_<name>__; where
the named class object must exist (R6, S7, S4) the writer warns,
.__MX_CLASS_REF_<name>__ (class_ref_or_verbatim). Self, which the
caller substitutes with the implementing class, and names that are not
bare identifiers pass through.