pub trait Iterator<K: KeyExt, V: ValueExt> {
// Required methods
fn next(&mut self);
fn rewind(&mut self);
fn seek<Q: KeyExt>(&mut self, key: Q);
fn entry(&self) -> Option<(K, V)>;
fn key(&self) -> Option<K>;
fn val(&self) -> Option<V>;
fn valid(&self) -> bool;
// Provided methods
fn size_hint(&self) -> (usize, Option<usize>) { ... }
fn count(&self) -> usize
where Self: Sized { ... }
}Expand description
Custom iterator
Required Methods§
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.