pub trait Position<T> {
    // Required method
    fn position(&self) -> T;
}
Expand description

A trait to be implemented by readers that track their own position.

Required Methods§

source

fn position(&self) -> T

Returns the byte index of the current position.

Implementors§