rustubs::black_magic

Function flush

Source
pub fn flush<T>(thing: &T) -> T
Expand description

flush a volatile variable: rust doesn’t have a volatile keyword. When a “const static” variable is expected to be written externally the optimized code may go wrong.