In Non-Lexical Lifetimes: Introduction , Niko includes the following snippet:
fn get_default3<'m,K,V:Default>(map: &'m mut HashMap<K,V>, key: K) -> &'m mut V { map.entry(key) .or_insert_with(|| V::default()) }
What does || V::default() || V::default() here?
rust
Calder
source share