()
| 822 | |
| 823 | impl AsNumber for PyByteArray { |
| 824 | fn as_number() -> &'static PyNumberMethods { |
| 825 | static AS_NUMBER: PyNumberMethods = PyNumberMethods { |
| 826 | remainder: Some(|a, b, vm| { |
| 827 | if let Some(a) = a.downcast_ref::<PyByteArray>() { |
| 828 | a.__mod__(b.to_owned(), vm).to_pyresult(vm) |
| 829 | } else { |
| 830 | Ok(vm.ctx.not_implemented()) |
| 831 | } |
| 832 | }), |
| 833 | ..PyNumberMethods::NOT_IMPLEMENTED |
| 834 | }; |
| 835 | &AS_NUMBER |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | impl Iterable for PyByteArray { |
nothing calls this directly
no test coverage detected