static
A value stored at one fixed place for the whole run.
A static item has a single fixed memory location that lives for the entire program.
Examples
static BUILD_NUMBER: u32 = 1042;is stored at one fixed address for the whole run, andprintln!("Build {BUILD_NUMBER}")printsBuild 1042.
See also