pub trait Positioner: Clone + PartialEq {
type Position: Clone + Ord;
// Required methods
fn start() -> Self::Position;
fn update(&self, position: &mut Self::Position);
}
Expand description
Positioner
represents the operations needed to update a position given an item from the stream
When implementing stream for custom token type this must be implemented for that token to allow
the position to be updated
Required Associated Types§
Required 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.