๐ Rust Global Variables
= variables, which are available anywhere in the program
(discouraged by Rust)
Conditions
- Must be of static lifetime
- Must be
const
How?
- use โ๏ธ Rust Atomics
lazy_static
Crate
Search
Dec 06, 2024, 1 min read
= variables, which are available anywhere in the program
(discouraged by Rust)
const
lazy_static
Crate