Skip to main content

static_once

Macro static_once 

Source
macro_rules! static_once {
    ($name:ident, $type:ty, $init:expr) => { ... };
}
Expand description

This macro creates a static variable that is initialized once andm can be accessed globally.