Trait noodles_bgzf::io::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§
sourcefn seek_to_virtual_position(
&mut self,
pos: VirtualPosition
) -> Result<VirtualPosition>
fn seek_to_virtual_position( &mut self, pos: VirtualPosition ) -> Result<VirtualPosition>
Seeks the stream to the given virtual position.