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

Method iter_unpack

crates/stdlib/src/pystruct.rs:298–304  ·  view source on GitHub ↗
(
            &self,
            buffer: ArgBytesLike,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

296
297 #[pymethod]
298 fn iter_unpack(
299 &self,
300 buffer: ArgBytesLike,
301 vm: &VirtualMachine,
302 ) -> PyResult<UnpackIterator> {
303 UnpackIterator::with_buffer(vm, self.spec.clone(), buffer)
304 }
305 }
306
307 impl Representable for PyStruct {

Callers 7

test_constructMethod · 0.80
test_uninstantiableMethod · 0.80
test_iterateMethod · 0.80
test_arbitrary_bufferMethod · 0.80
test_length_hintMethod · 0.80
test_module_funcMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by 7

test_constructMethod · 0.64
test_uninstantiableMethod · 0.64
test_iterateMethod · 0.64
test_arbitrary_bufferMethod · 0.64
test_length_hintMethod · 0.64
test_module_funcMethod · 0.64