Skip to main content

callsite_set

Function callsite_set 

Source
pub fn callsite_set(
    cell: &'static OnceLock<&'static PropertySet>,
    pairs: &'static [(&'static str, &'static str)],
) -> &'static PropertySet
Expand description

Interns the literal properties of one macro callsite on first use. cell is a static emitted by the macro, so each callsite pays one atomic load afterwards.

Duplicate names are resolved the way merge_properties does: case-insensitive, last wins.