pub struct LineIndex { /* private fields */ }Implementations§
source§impl LineIndex
impl LineIndex
pub fn read_file(file: File, complete: bool) -> Result<Self>
pub fn read_stream( stream: BoxedStream, outgoing: Sender<Segment>, complete: bool ) -> Result<Self>
pub fn line_count(&self) -> usize
pub fn data_of_line(&self, line_number: usize) -> Option<u64>
pub fn line_of_data(&self, key: u64) -> Option<usize>
pub fn is_complete(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for LineIndex
impl Send for LineIndex
impl Sync for LineIndex
impl Unpin for LineIndex
impl UnwindSafe for LineIndex
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