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

Method positions

atomic-core/src/change/format_v3/graph_fields/decode.rs:193–201  ·  view source on GitHub ↗
(&mut self, role: usize)

Source from the content-addressed store, hash-verified

191 Ok(value)
192 }
193 fn positions(&mut self, role: usize) -> FormatResult<Vec<CompactPosition>> {
194 let available = self.columns[role].count.min(self.columns[role + 1].count) as usize;
195 let n = self.count(16, available)?;
196 let mut out = reserve(n)?;
197 for _ in 0..n {
198 out.push(self.position(role)?);
199 }
200 Ok(out)
201 }
202 fn insertion(&mut self, r: usize) -> FormatResult<CompactInsertion> {
203 Ok(CompactInsertion {
204 flag: self.n(ins(r, 0))?,

Callers 1

insertionMethod · 0.80

Calls 4

reserveFunction · 0.70
countMethod · 0.45
pushMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected