[−][src]Struct indexed_line_reader::LinesIndex
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]
&mut self,
reader: &mut T
) -> Result<u64, Error>
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]
fn eq(&self, other: &LinesIndex) -> bool
[src]
fn ne(&self, other: &LinesIndex) -> bool
[src]
impl Clone for LinesIndex
[src]
fn clone(&self) -> 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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,