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_rc

static_foreign_rc

Macro static_foreign_rc 

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

Declare a ForeignRc in static storage that is runtime initialized.

§Safety

Caller must ensure that the macro is executed only once.