pub trait WordSeek {
    type Error: Error + Send + Sync + 'static;

    // Required methods
    fn word_pos(&mut self) -> Result<u64, Self::Error>;
    fn set_word_pos(&mut self, word_pos: u64) -> Result<(), Self::Error>;
}
Expand description

Seekability for WordRead and WordWrite streams.

Required Associated Types§

source

type Error: Error + Send + Sync + 'static

Required Methods§

source

fn word_pos(&mut self) -> Result<u64, Self::Error>

Get the current position in words from the start of the file.

source

fn set_word_pos(&mut self, word_pos: u64) -> Result<(), Self::Error>

Set the current position in words from the start of the file to word_pos.

Implementors§