Trait Seek

Source
pub trait Seek {
    // Required methods
    fn seek_to_virtual_position(
        &mut self,
        pos: VirtualPosition,
    ) -> Result<VirtualPosition>;
    fn seek_with_index(&mut self, index: &Index, pos: SeekFrom) -> Result<u64>;
}
Expand description

A seekable BGZF reader.

Required Methods§

Source

fn seek_to_virtual_position( &mut self, pos: VirtualPosition, ) -> Result<VirtualPosition>

Seeks the stream to the given virtual position.

Source

fn seek_with_index(&mut self, index: &Index, pos: SeekFrom) -> Result<u64>

Seeks the stream to the given position using an index.

Implementors§

Source§

impl<R> Seek for Reader<R>
where R: Read + Seek,

Source§

impl<R> Seek for MultithreadedReader<R>
where R: Read + Send + Seek + 'static,