[][src]Struct indexed_line_reader::LinesIndex

pub struct LinesIndex { /* fields omitted */ }

Methods

impl LinesIndex[src]

pub fn new(granularity: u64) -> LinesIndex[src]

pub fn insert(&mut self, pos: u64, byte_count: u64) -> Option<u64>[src]

pub fn clear(&mut self)[src]

pub fn line_count(&self) -> u64[src]

pub fn byte_count(&self) -> u64[src]

pub fn byte_count_at_pos(&self, pos: &u64) -> Option<u64>[src]

pub fn last_indexed_pos(&self) -> Option<u64>[src]

pub fn compute<T: BufRead + Seek>(
    &mut self,
    reader: &mut T
) -> Result<u64, Error>
[src]

pub fn get_ref(&self) -> &BTreeMap<u64, u64>[src]

pub fn get_mut(&mut self) -> &mut BTreeMap<u64, u64>[src]

pub fn into_inner(self) -> BTreeMap<u64, u64>[src]

Trait Implementations

impl PartialEq<LinesIndex> for LinesIndex[src]

impl Clone for LinesIndex[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for LinesIndex[src]

impl Debug for LinesIndex[src]

Auto Trait Implementations

impl Send for LinesIndex

impl Sync for LinesIndex

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.