IteratorQuery.Contracts
Purpose
Section titled “Purpose”Define core iterator contracts used by the IteratorQuery feature, including pipelines and for in lowering.
Core contract
Section titled “Core contract”pub contract Iterator<T> { Option<T> Next();}for item in exprconsumes iterator-capable values throughNext().- Contract remains backend-neutral and monomorphization-friendly.