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

Method repr

crates/vm/src/builtins/set.rs:321–323  ·  view source on GitHub ↗
(&self, class_name: Option<&str>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

319 }
320
321 fn repr(&self, class_name: Option<&str>, vm: &VirtualMachine) -> PyResult<Wtf8Buf> {
322 collection_repr(class_name, "{", "}", self.elements().iter(), vm)
323 }
324
325 fn add(&self, item: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
326 self.content.insert(vm, &*item, ())

Callers 1

repr_wtf8Method · 0.45

Calls 3

collection_reprFunction · 0.85
iterMethod · 0.45
elementsMethod · 0.45

Tested by

no test coverage detected