Skip to main content

split_map_entry

Function split_map_entry 

Source
pub fn split_map_entry(entry: &str) -> Option<(String, String)>
Expand description

One {key: value} entry’s key and value sources, split once on the first top-level single :. A :: qualified separator never splits: $LIB::NAME values stay whole, so nested qualified refs survive map literals in both static inference and runtime resolution. None when the entry is not exactly one pair.