Skip to main content
Conversion into an Iterator. By implementing IntoIterator for a type, you define how it will be converted to an iterator. This is common for types which describe a collection of some kind. One benefit of implementing IntoIterator is that your type will work with Cairo’s for loop syntax. See also: FromIterator.

Signature

Examples

Basic usage:
Implementing IntoIterator for your type:

Trait functions

into_iter

Creates an iterator from a value. See the module-level documentation for more.

Signature

Examples

Trait types

IntoIter

The iterator type that will be created.

Signature