MCPcopy Index your code
hub / github.com/RustPython/RustPython / iter

Method iter

crates/vm/src/builtins/set.rs:314–319  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

312 }
313
314 fn iter(&self) -> PySetIterator {
315 PySetIterator {
316 size: self.content.size(),
317 internal: PyMutex::new(PositionIterInternal::new(self.content.clone(), 0)),
318 }
319 }
320
321 fn repr(&self, class_name: Option<&str>, vm: &VirtualMachine) -> PyResult<Wtf8Buf> {
322 collection_repr(class_name, "{", "}", self.elements().iter(), vm)

Callers 13

fmtMethod · 0.45
unionMethod · 0.45
intersectionMethod · 0.45
differenceMethod · 0.45
symmetric_differenceMethod · 0.45
issupersetMethod · 0.45
issubsetMethod · 0.45
isdisjointMethod · 0.45
reprMethod · 0.45
updateMethod · 0.45
update_internalMethod · 0.45
difference_updateMethod · 0.45

Calls 4

newFunction · 0.85
sizeMethod · 0.45
cloneMethod · 0.45
into_pyobjectMethod · 0.45

Tested by

no test coverage detected