pub trait IteratorContext {
// Required methods
fn index(&self) -> i64;
fn is_done(&self) -> bool;
fn total(&self) -> Option<i64>;
}Expand description
Object-safe view of an iterator’s current state, passed to every Callback
hook.
The concrete iterator (e.g. Training) implements this privately; the
callback only needs the interface.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".