pub trait MutStreamingIterator: Sized {
type Item;
type Error;
// Required methods
fn advance(self) -> Result<State<Self>, Self::Error>;
fn get(&mut self) -> Option<&mut Self::Item>;
}
Expand description
A special kind of fallible streaming iterator where advance
consumes the iterator.
Required Associated Types§
Required Methods§
fn advance(self) -> Result<State<Self>, Self::Error>
fn get(&mut self) -> Option<&mut Self::Item>
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.