fn add(&self, key: VarId, value: String) -> Self {
        if self.map.contains_key(&key) {
            panic!("Tried to add duplicate key {:?} to context", key);
        }
        Self {
            map: self.map.insert(key, value),
            ..self.clone()
        }
    }
/// Add a new entry to the map, returning a new map.
Add a new entry to the map, returning a new map.
Add a new entry to the map returning a new map .
fn add(&self, key: VarId, value: String) -> Self {
        if self.map.contains_key(&key) {
            panic!("Tried to add duplicate key {:?} to context", key);
        }
        Self {
            map: self.map.insert(key, value),
            ..self.clone()
        }
    }
fn add ( & self , key : VarId , value : String ) -> Self { if self . map . contains_key ( & key ) { panic ! ( " " key ) ; } Self { map : self . map . insert ( key , value ) , .. self . clone ( ) } }
Add a new entry to the map, returning a new map.
Add a new entry to the map returning a new map .
&self
key
VarId
value
String
&self
key
VarId
value
String