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:226–232  ·  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

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

Calls 2

next_sectionMethod · 0.80
pushMethod · 0.45