Skip to main content

constant_names

Function constant_names 

Source
pub fn constant_names() -> impl Iterator<Item = &'static str>
Expand description

Every bare identifier that resolves to a literal, in declaration order.

Resolved before the variable lookup, so a consumer highlighting these is naming something no future variable can shadow.