Rust Const


Example

The const keyword declares a global constant binding.

const DEADBEEF: u64 = 0xDEADBEEF;

fn main() {
    println("{:X}", DEADBEEF);
}

This outputs

DEADBEEF