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

Method position

atomic-core/src/change/format_v3/graph_fields/encode.rs:28–31  ·  view source on GitHub ↗
(&mut self, role: usize, p: CompactPosition)

Source from the content-addressed store, hash-verified

26 previous.write(data, n);
27 }
28 fn position(&mut self, role: usize, p: CompactPosition) {
29 self.n(role, p.change.into());
30 self.n(role + 1, p.pos.into());
31 }
32 fn path(&mut self, path: &str) -> FormatResult<()> {
33 charge(&mut self.budget, path.len(), 1)?;
34 let id = if let Some(&id) = self.paths.get(path) {

Callers 6

from_bytesMethod · 0.45
firstFunction · 0.45
lengthFunction · 0.45
insertionMethod · 0.45
edgesMethod · 0.45
opMethod · 0.45

Calls 1

nMethod · 0.45

Tested by

no test coverage detected