Struct indexed_line_reader::LinesIndex [] [src]

pub struct LinesIndex {
    // some fields omitted


impl LinesIndex

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<u64Error>

Trait Implementations

impl Eq for LinesIndex

impl PartialEq for LinesIndex

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

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for LinesIndex

fn clone(&self) -> LinesIndex

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more