(&self, vm: &VirtualMachine)
| 692 | } |
| 693 | |
| 694 | pub fn length_opt(&self, vm: &VirtualMachine) -> Option<PyResult<usize>> { |
| 695 | self.sequence_unchecked() |
| 696 | .length_opt(vm) |
| 697 | .or_else(|| self.mapping_unchecked().length_opt(vm)) |
| 698 | } |
| 699 | |
| 700 | pub fn length(&self, vm: &VirtualMachine) -> PyResult<usize> { |
| 701 | self.length_opt(vm).ok_or_else(|| { |
no test coverage detected