pub trait CanBeIterator: Iterator<Item = Value> + Debug {
// Provided methods
fn call_next(&mut self) -> Result<Value, Box<dyn Error>> { ... }
fn call_collect(&mut self) -> Result<Value, Box<dyn Error>> { ... }
}pub trait CanBeIterator: Iterator<Item = Value> + Debug {
// Provided methods
fn call_next(&mut self) -> Result<Value, Box<dyn Error>> { ... }
fn call_collect(&mut self) -> Result<Value, Box<dyn Error>> { ... }
}