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

Method __length_hint__

crates/stdlib/src/pystruct.rs:196–198  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

194 impl UnpackIterator {
195 #[pymethod]
196 fn __length_hint__(&self) -> usize {
197 self.buffer.len().saturating_sub(self.offset.load()) / self.format_spec.size
198 }
199 }
200 impl SelfIter for UnpackIterator {}
201

Callers 2

builtin_dict.pyFile · 0.45
builtin_list.pyFile · 0.45

Calls 2

lenMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected