Skip to main content

iter_destroy

Function iter_destroy 

Source
pub unsafe fn iter_destroy<T>(handle: *mut IterHandle<T>)
Expand description

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.

§Safety

handle must be null or a live pointer from iter_into_raw, released exactly once.