Skip to main content

PySendResult

Type Alias PySendResult 

Source
pub type PySendResult<'py> = PySendResult<'py>;
👎Deprecated since 0.30.0:

moved to pyo3::types::iterator::PySendResult

Available on Py_3_10 and non-PyPy only.
Expand description

Deprecated alias for iterator::PySendResult.

Aliased Type§

pub enum PySendResult<'py> {
    Next(Bound<'py, PyAny>),
    Return(Bound<'py, PyAny>),
}

Variants§

§

Next(Bound<'py, PyAny>)

The generator yielded a new value

§

Return(Bound<'py, PyAny>)

The generator completed, returning a (possibly None) final value

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