Skip to main content

scope_keyed

Macro scope_keyed 

Source
macro_rules! scope_keyed {
    ($s:expr, $id:expr, [$($input:expr),* $(,)?], $body:block) => { ... };
}
Expand description

scope! keyed by a stable item id plus the call site. Use inside loops / lazy lists so each item owns its cache entry.