rustc_span::symbol::sym

Function integer

source
pub fn integer<N: TryInto<usize> + Copy + Integer>(n: N) -> Symbol
Expand description

Get the symbol for an integer.

The first few non-negative integers each have a static symbol and therefore are fast.