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

Method insertion

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

Source from the content-addressed store, hash-verified

200 Ok(out)
201 }
202 fn insertion(&mut self, r: usize) -> FormatResult<CompactInsertion> {
203 Ok(CompactInsertion {
204 flag: self.n(ins(r, 0))?,
205 start: self.n(ins(r, 1))?,
206 end: self.n(ins(r, 2))?,
207 inode: self.position(ins(r, 3))?,
208 predecessors: self.positions(ins(r, 5))?,
209 successors: self.positions(ins(r, 7))?,
210 })
211 }
212 fn edges(&mut self, r: usize) -> FormatResult<CompactEdgeUpdate> {
213 let inode = self.position(edge(r, 0))?;
214 let available = (2..10)

Callers 2

optional_insertionMethod · 0.45
opMethod · 0.45

Calls 4

insFunction · 0.85
positionsMethod · 0.80
nMethod · 0.45
positionMethod · 0.45

Tested by

no test coverage detected