Type Alias pyo3::pyclass::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.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here