Skip to main content

assign_mapping

Function assign_mapping 

Source
pub fn assign_mapping<T: Into<Stored>>(map: &str, key: &str, value: Option<T>)
Expand description

Bind key to value inside the named mapping — Perl’s AssignMapping.

A mapping is a named hash living in the value table (TAG_PROPERTIES, counter_for_type, …). The mapping itself is created globally on first use, so that entries assigned inside a group are still found from outside it; passing None for value removes the key. Read entries back with with_mapping.