(zelf: PyRef<Self>, vm: &VirtualMachine)
| 1168 | #[pyclass] |
| 1169 | trait ViewSetOps: DictView { |
| 1170 | fn to_set(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult<PySetInner> { |
| 1171 | let len = zelf.dict().__len__(); |
| 1172 | let zelf: PyObjectRef = Self::iter(zelf, vm)?; |
| 1173 | let iter = PyIterIter::new(vm, zelf, Some(len)); |
| 1174 | PySetInner::from_iter(iter, vm) |
| 1175 | } |
| 1176 | |
| 1177 | fn __xor__(zelf: PyRef<Self>, other: ArgIterable, vm: &VirtualMachine) -> PyResult<PySet> { |
| 1178 | let zelf = Self::to_set(zelf, vm)?; |