Trait stabby_abi::iter::Iterator

source ·
pub trait Iterator {
    type Item: IDeterminantProvider<()>;

    // Required methods
    extern "C" fn next(&mut self) -> Option<Self::Item>;
    extern "C" fn size_hint(&self) -> Tuple<usize, Option<usize>>;
}
Expand description

core::iter::Iterator, but ABI-stable.

Required Associated Types§

source

type Item: IDeterminantProvider<()>

The type of the elements of the iterator.

Required Methods§

source

extern "C" fn next(&mut self) -> Option<Self::Item>

Returns the next element in the iterator if it exists.

source

extern "C" fn size_hint(&self) -> Tuple<usize, Option<usize>>

Trait Implementations§

source§

impl<'stabby_vt_lt, _stabby_unselfed_0> CompoundVt for dyn Iterator<Item = _stabby_unselfed_0>
where _stabby_unselfed_0: IDeterminantProvider<()>,

§

type Vt<StabbyNextVtable> = VTable<StabbyVtableIterator<_stabby_unselfed_0>, StabbyNextVtable>

An stabby-generated item for Iterator

Implementors§

source§

impl<T: Iterator> Iterator for T

§

type Item = <T as Iterator>::Item