Skip to main content

ANON_FN_PREFIX

Constant ANON_FN_PREFIX 

Source
pub const ANON_FN_PREFIX: &str = "<anon>";
Expand description

Name prefix for the synthetic top-level function an anonymous function is hoisted to. < is not a legal identifier character, so a hoisted name can never collide with a user-written function.

Public because a frontend reading the function table has to tell the entries a person wrote from the ones the compiler made: an outline lists the first and leaves out the second.