Expand description
Lazily pulled iterators: the producer’s Iter and the opaque handle a
launcher returns for it.
Structs§
- Iter
- An owned, type-erased iterator returned by a producer function whose IDL
return type is
iter<T>. - Iter
Handle - The opaque iterator handle a launcher returns (
{prefix}_..._Iterator*in C).
Functions§
- iter_
destroy ⚠ - The body of every iterator’s
_destroysymbol: drop the iterator and its handle. A null handle is a no-op, and a panickingDropis swallowed because a destructor has noout_errslot and must never unwind into C. - iter_
into_ raw - Box
iterbehind a new handle for the consumer, who releases it with_destroy(seeiter_destroy). - iter_
next ⚠ - Pull the next element from a handle:
Ok(None)when the iterator is exhausted.