pub fn yield_section<'tape, 'data: 'tape>(
tape: &'tape mut Tape<'data>,
) -> Option<Result<Section<'tape, 'data>, SectionReaderError<'data>>>
Expand description
Essentially an iterator over sections in a tape. Previously a struct, but this is simpler, and makes the borrow checker happy. Returns None if there are no more sections. Otherwise, returns the next section, or reports an error.