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

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

Python Iterator Interface.

Check CPython doc for more.

Provided methods

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

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

Loading content...

Implementors

Loading content...