Skip to main content

from_iter

Function from_iter 

Source
pub fn from_iter(
    core: &Core,
    binding: &Arc<dyn ProducerBinding>,
    handles: Vec<HandleId>,
) -> NodeId
Expand description

Emit each handle as DATA in order, then COMPLETE. If the iterator is empty, behaves like empty (COMPLETE only).

The caller must pre-intern each handle on the binding side and pass ownership to this factory. Handles are retained once per emission and the caller’s original shares are released during the build closure (so the caller should NOT release them after calling this).