Struct indexed_line_reader::LinesIndex
[−]
[src]
pub struct LinesIndex { // some fields omitted }
Methods
impl LinesIndex
[src]
fn new(granularity: u64) -> LinesIndex
fn insert(&mut self, pos: u64, byte_count: u64) -> Option<u64>
fn clear(&mut self)
fn line_count(&self) -> u64
fn byte_count(&self) -> u64
fn byte_count_at_pos(&self, pos: &u64) -> Option<u64>
fn last_indexed_pos(&self) -> Option<u64>
fn compute<T: BufRead + Seek>(&mut self, reader: &mut T) -> Result<u64, Error>
fn get_ref(&self) -> &BTreeMap<u64, u64>
fn get_mut(&mut self) -> &mut BTreeMap<u64, u64>
fn into_inner(self) -> BTreeMap<u64, u64>
Trait Implementations
impl Eq for LinesIndex
[src]
impl PartialEq for LinesIndex
[src]
fn eq(&self, __arg_0: &LinesIndex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LinesIndex) -> bool
This method tests for !=
.
impl Debug for LinesIndex
[src]
impl Clone for LinesIndex
[src]
fn clone(&self) -> LinesIndex
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more