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

Method __len__

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

Source from the content-addressed store, hash-verified

535)]
536impl PySet {
537 fn __len__(&self) -> usize {
538 self.inner.len()
539 }
540
541 fn __contains__(&self, needle: &PyObject, vm: &VirtualMachine) -> PyResult<bool> {
542 self.inner.contains(needle, vm)

Callers

nothing calls this directly

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected