Skip to main content

reference_stable

Macro reference_stable 

Source
macro_rules! reference_stable {
    ($name: tt, $value: expr) => { ... };
}
Expand description

Create a Reference argument from data with a stable address.

§Safety

You must ensure the data has a stable address (heap allocated, static, etc.) and won’t be moved for the lifetime of the reference.