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)
| 224 | /// |
| 225 | /// Any error from [`next_section`](Self::next_section). |
| 226 | pub fn read_all_sections(&mut self) -> FormatResult<Vec<ReadSection>> { |
| 227 | let mut sections = Vec::new(); |
| 228 | while let Some(section) = self.next_section()? { |
| 229 | sections.push(section); |
| 230 | } |
| 231 | Ok(sections) |
| 232 | } |
| 233 | |
| 234 | // ── Verification ─────────────────────────────────────────────── |
| 235 |