pub struct EasyReader<R> { /* private fields */ }
Implementations§
Source§impl<R: Read + Seek> EasyReader<R>
impl<R: Read + Seek> EasyReader<R>
pub fn new(file: R) -> Result<Self, Error>
pub fn chunk_size(&mut self, size: usize) -> &mut Self
pub fn bof(&mut self) -> &mut Self
pub fn eof(&mut self) -> &mut Self
pub fn build_index(&mut self) -> Result<&mut Self>
pub fn prev_line(&mut self) -> Result<Option<String>>
pub fn current_line(&mut self) -> Result<Option<String>>
pub fn next_line(&mut self) -> Result<Option<String>>
pub fn random_line(&mut self) -> Result<Option<String>>
Auto Trait Implementations§
impl<R> Freeze for EasyReader<R>where
R: Freeze,
impl<R> RefUnwindSafe for EasyReader<R>where
R: RefUnwindSafe,
impl<R> Send for EasyReader<R>where
R: Send,
impl<R> Sync for EasyReader<R>where
R: Sync,
impl<R> Unpin for EasyReader<R>where
R: Unpin,
impl<R> UnwindSafe for EasyReader<R>where
R: UnwindSafe,
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