macro_rules! raise_if_stop {
($input:expr) => { ... };
}Expand description
Macro to handle PyIterReturn values in iterator implementations.
Extracts the object from PyIterReturn::Return(obj) or performs early return
for PyIterReturn::StopIteration(v). This macro should only be used within
functions that return PyResult<PyIterReturn>.