Skip to main content

Module iter

Module iter 

Source
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>.
IterHandle
The opaque iterator handle a launcher returns ({prefix}_..._Iterator* in C).

Functions§

iter_destroy⚠
The body of every iterator’s _destroy symbol: drop the iterator and its handle. A null handle is a no-op, and a panicking Drop is swallowed because a destructor has no out_err slot and must never unwind into C.
iter_into_raw
Box iter behind a new handle for the consumer, who releases it with _destroy (see iter_destroy).
iter_next⚠
Pull the next element from a handle: Ok(None) when the iterator is exhausted.