[][src]Trait pyo3::class::iter::PyIterProtocol

pub trait PyIterProtocol<'p>: PyTypeInfo + Sized {
    fn __iter__(slf: PyRefMut<'p, Self>) -> Self::Result
    where
        Self: PyIterIterProtocol<'p>
, { ... }
fn __next__(slf: PyRefMut<'p, Self>) -> Self::Result
    where
        Self: PyIterNextProtocol<'p>
, { ... } }

Python Iterator Interface.

more information https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_iter

Provided methods

fn __iter__(slf: PyRefMut<'p, Self>) -> Self::Result where
    Self: PyIterIterProtocol<'p>, 

fn __next__(slf: PyRefMut<'p, Self>) -> Self::Result where
    Self: PyIterNextProtocol<'p>, 

Loading content...

Implementors

Loading content...