Read all remaining sections, returning them as a vector. This is a convenience method that calls [`next_section`](Self::next_section) in a loop until all sections are consumed. # Errors Any error from [`next_section`](Self::next_section).
(&mut self)
| 243 | /// |
| 244 | /// Any error from [`next_section`](Self::next_section). |
| 245 | pub fn read_all_sections(&mut self) -> FormatResult<Vec<ReadSection>> { |
| 246 | let mut sections = Vec::new(); |
| 247 | while let Some(section) = self.next_section()? { |
| 248 | sections.push(section); |
| 249 | } |
| 250 | Ok(sections) |
| 251 | } |
| 252 | |
| 253 | // ── Verification ─────────────────────────────────────────────── |
| 254 |