pub struct Reader<'a> { /* private fields */ }Expand description
Reads a claim’s records in order and can tell where the last one it
returned began, which is where a reader that could not send it stops:
Claimed::finish keeps what is from there on.
Implementations§
Source§impl Reader<'_>
impl Reader<'_>
Sourcepub fn next_record(&mut self) -> Result<Option<String>>
pub fn next_record(&mut self) -> Result<Option<String>>
The next record, or None at the claim’s end. Blank lines are passed
over. Reading a file marks it as in use (see [ABANDONED_AFTER]).
Sourcepub fn before_last(&self) -> Position
pub fn before_last(&self) -> Position
Where the record Self::next_record returned last began: with
Claimed::finish, that record and all after it stay queued.
Auto Trait Implementations§
impl<'a> Forget for Reader<'a>
impl<'a> Freeze for Reader<'a>
impl<'a> Move for Reader<'a>
impl<'a> RefUnwindSafe for Reader<'a>
impl<'a> Send for Reader<'a>
impl<'a> Sync for Reader<'a>
impl<'a> Unpin for Reader<'a>
impl<'a> UnsafeUnpin for Reader<'a>
impl<'a> UnwindSafe for Reader<'a>
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