MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / iter

Method iter

wasm-pdk/src/lib.rs:598–605  ·  view source on GitHub ↗

`iter(recv)`; materialises the receiver as a List iterator handle.

(&self)

Source from the content-addressed store, hash-verified

596
597 /// `iter(recv)`; materialises the receiver as a List iterator handle.
598 pub fn iter(&self) -> Result<Handle> {
599 let mut out: u32 = 0;
600 let r = unsafe {
601 edge_op(op::ITER, self.raw, core::ptr::null(), 0, core::ptr::null(), 0, &mut out as *mut u32)
602 };
603 if r != 0 { return Err(last_error()); }
604 Ok(Handle::from_raw(out))
605 }
606
607 /// `next(recv)`; returns `Ok(None)` at end-of-iteration, propagates other errors.
608 pub fn iter_next(&self) -> Result<Option<Handle>> {

Callers 15

join_allFunction · 0.45
total_lenMethod · 0.45
plugin_fnFunction · 0.45
plugin_methodsFunction · 0.45
findallFunction · 0.45
named_backrefMethod · 0.45
buildFunction · 0.45
resolve_nameFunction · 0.45
class_containsFunction · 0.45
fixed_lenFunction · 0.45
serialize_sequenceFunction · 0.45
serialize_objectFunction · 0.45

Calls 1

last_errorFunction · 0.85

Tested by

no test coverage detected