static_reference

Macro static_reference 

Source
macro_rules! static_reference {
    ($type_: ty, $was: expr) => { ... };
}
Expand description

Create a static of something and return a Ptr-variant Reference to it. This contains a raw mutable pointer. It will never use-after-free because its target is static, but be careful if you’re doing multiprocessing where multiple things could mutate it at once.

The documentation shows rrtk::static_reference and rrtk::reference::static_reference separately. These are the same macro exported in two different places. These paths point to the same code in RRTK. Rust’s scoping rules for macros are a bit odd, but you should be able to use rrtk::static_reference and rrtk::reference::static_reference interchangably.