Skip to main content Skip to main content
Pigweed's logo Pigweed
code_xml
  1. Home
  2. Reference
  3. Rust
  4. pw_kernel
  5. foreign_box
  6. static_foreign_box

static_foreign_box

Macro static_foreign_box 

Source
macro_rules! static_foreign_box {
    ($ty:ty, $init:expr) => { ... };
}
Expand description

Declare a ForeignBox in static storage that is runtime initialized.

§Safety

Caller must ensure that the macro is executed only once.