Set item variant which can be called with multiple key types, such as str to name a notable one.
(
&self,
key: &K,
value: PyObjectRef,
vm: &VirtualMachine,
)
| 206 | /// Set item variant which can be called with multiple |
| 207 | /// key types, such as str to name a notable one. |
| 208 | pub(crate) fn inner_setitem<K: DictKey + ?Sized>( |
| 209 | &self, |
| 210 | key: &K, |
| 211 | value: PyObjectRef, |
| 212 | vm: &VirtualMachine, |
| 213 | ) -> PyResult<()> { |
| 214 | self.entries.insert(vm, key, value) |
| 215 | } |
| 216 | |
| 217 | pub(crate) fn inner_delitem<K: DictKey + ?Sized>( |
| 218 | &self, |
no test coverage detected