Trait koto_runtime::KotoIterator
source · pub trait KotoIterator: Iterator<Item = KIteratorOutput> + KotoSend + KotoSync {
// Required method
fn make_copy(&self) -> Result<KIterator>;
// Provided methods
fn is_bidirectional(&self) -> bool { ... }
fn next_back(&mut self) -> Option<KIteratorOutput> { ... }
}
Expand description
The trait used to implement iterators in Koto
See KIterator.
Required Methods§
Provided Methods§
sourcefn is_bidirectional(&self) -> bool
fn is_bidirectional(&self) -> bool
Returns true if the iterator supports reversed iteration via next_back
sourcefn next_back(&mut self) -> Option<KIteratorOutput>
fn next_back(&mut self) -> Option<KIteratorOutput>
Returns the next item produced by iterating backwards
Returns None
when no more items are available in reverse order.