Trait IterNext

Source
pub trait IterNext: PyPayload + Iterable {
    const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _;

    // Required method
    fn next(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyIterReturn>;

    // Provided methods
    fn slot_iternext(
        zelf: &PyObject,
        vm: &VirtualMachine,
    ) -> PyResult<PyIterReturn> { ... }
    fn __next__(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult { ... }
    fn __extend_py_class(ctx: &Context, class: &'static Py<PyType>) { ... }
    fn __extend_slots(slots: &mut PyTypeSlots) { ... }
}

Provided Associated Constants§

Source

const __OWN_METHOD_DEFS: &'static [PyMethodDef] = _

Required Methods§

Source

fn next(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<PyIterReturn>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§