MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / len

Method len

src/objects/set.rs:62–64  ·  view source on GitHub ↗
(&self, _py: Python)

Source from the content-addressed store, hash-verified

60 /// This is equivalent to Python `len(self)`
61 #[inline]
62 pub fn len(&self, _py: Python) -> usize {
63 unsafe { ffi::PySet_Size(self.0.as_ptr()) as usize }
64 }
65
66 /// Determine if the set contains the specified value.
67 /// This is equivalent to the Python expression `value in self`.

Callers 10

get_config_varsFunction · 0.45
get_config_varsFunction · 0.45
from_formatMethod · 0.45
get_ptrMethod · 0.45
parse_argsFunction · 0.45
newMethod · 0.45
to_stringMethod · 0.45
new_implMethod · 0.45
newMethod · 0.45
variant_seedMethod · 0.45

Calls 1

as_ptrMethod · 0.45

Tested by

no test coverage detected