Skip to main content

rename_type_ref

Function rename_type_ref 

Source
pub fn rename_type_ref(
    t: &TypeRef,
    renames: &HashMap<String, String>,
) -> TypeRef
Expand description

#1846: t with each type renames names renamed, wherever it is named: a bare name, and the base of a generic application (Envelope[Int]), which subst_type_ref leaves alone because a type parameter is never applied. bynk-emit renames a consumed context’s unexported types with it.