Skip to main content

exported_closure_caches

Function exported_closure_caches 

Source
pub fn exported_closure_caches(
    ta: &TypedAst,
) -> BTreeMap<MangledName, MangledName>
Expand description

The closure caches this module exports, from the name a consumer knows the function by to the function it defines: its non-generic exported functions, under each name they are exported as, and its classes’ public static methods. A consumer that reads one as a value imports the cache instead of keeping its own, so the function is one closure across packages, as in JavaScript.