pub struct LinesIndex { /* private fields */ }
Implementations§
Source§impl LinesIndex
impl LinesIndex
pub fn new(granularity: u64) -> LinesIndex
pub fn insert(&mut self, pos: u64, byte_count: u64) -> Option<u64>
pub fn clear(&mut self)
pub fn line_count(&self) -> u64
pub fn byte_count(&self) -> u64
pub fn byte_count_at_pos(&self, pos: &u64) -> Option<u64>
pub fn last_indexed_pos(&self) -> Option<u64>
pub fn compute<T: BufRead + Seek>( &mut self, reader: &mut T, ) -> Result<u64, Error>
pub fn get_ref(&self) -> &BTreeMap<u64, u64>
pub fn get_mut(&mut self) -> &mut BTreeMap<u64, u64>
pub fn into_inner(self) -> BTreeMap<u64, u64>
Trait Implementations§
Source§impl Clone for LinesIndex
impl Clone for LinesIndex
Source§fn clone(&self) -> LinesIndex
fn clone(&self) -> LinesIndex
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LinesIndex
impl Debug for LinesIndex
Source§impl PartialEq for LinesIndex
impl PartialEq for LinesIndex
impl Eq for LinesIndex
impl StructuralPartialEq for LinesIndex
Auto Trait Implementations§
impl Freeze for LinesIndex
impl RefUnwindSafe for LinesIndex
impl Send for LinesIndex
impl Sync for LinesIndex
impl Unpin for LinesIndex
impl UnwindSafe for LinesIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more