pyo3::pyclass

Type Alias PyIterNextOutput

Source
pub type PyIterNextOutput = IterNextOutput<PyObject, PyObject>;
๐Ÿ‘ŽDeprecated since 0.21.0: Use Option or PyStopIteration instead.
Expand description

Alias of IterNextOutput with PyObject yield & return values.

Aliased Typeยง

enum PyIterNextOutput {
    Yield(Py<PyAny>),
    Return(Py<PyAny>),
}

Variantsยง

ยง

Yield(Py<PyAny>)

๐Ÿ‘ŽDeprecated since 0.21.0: Use Option or PyStopIteration instead.

The value yielded by the iterator.

ยง

Return(Py<PyAny>)

๐Ÿ‘ŽDeprecated since 0.21.0: Use Option or PyStopIteration instead.

The StopIteration object.