Look up `key` in `self`, falling back to `other`. Both dicts must be exact `dict` types (enforced by `PyExact`).
(
&self,
other: &Self,
key: &K,
vm: &VirtualMachine,
)
| 770 | /// Look up `key` in `self`, falling back to `other`. |
| 771 | /// Both dicts must be exact `dict` types (enforced by `PyExact`). |
| 772 | pub(crate) fn get_chain_exact<K: DictKey + ?Sized>( |
| 773 | &self, |
| 774 | other: &Self, |
| 775 | key: &K, |
| 776 | vm: &VirtualMachine, |
| 777 | ) -> PyResult<Option<PyObjectRef>> { |
| 778 | debug_assert!(self.class().is(vm.ctx.types.dict_type)); |
| 779 | debug_assert!(other.class().is(vm.ctx.types.dict_type)); |
| 780 | self.entries.get_chain(&other.entries, vm, key) |
| 781 | } |
| 782 | } |
| 783 | |
| 784 | // Implement IntoIterator so that we can easily iterate dictionaries from rust code. |
no test coverage detected