MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / read_all_sections

Method read_all_sections

atomic-core/src/change/format_v3/reader/sections.rs:245–251  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Calls 2

next_sectionMethod · 0.80
pushMethod · 0.45