pub fn unmangle_identifiers<T: Display>( text: &str, magic: impl Fn(String) -> T, ) -> Cow<'_, str>
Decode all magic identifiers in a string.