Skip to main content

scope

Macro scope 

Source
macro_rules! scope {
    ($r:expr; $($key:literal => $val:expr),* $(,)?) => { ... };
}
Expand description

Populates Renderable::scope with key => value pairs.

The key may include a :type suffix (e.g. "version:int") that is interpreted by the renderer downstream.

ⓘ
scope!(r;
    "name" => "Rust",
    "version:int" => "1",
    "stable:bool" => "true",
);