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

Method local

atomic-core/src/change/format_v3/graph_fields/encode.rs:50–54  ·  view source on GitHub ↗
(&mut self, role: usize, local: &Local)

Source from the content-addressed store, hash-verified

48 Ok(())
49 }
50 fn local(&mut self, role: usize, local: &Local) -> FormatResult<()> {
51 self.path(&local.path)?;
52 self.n(LOCAL + role, local.line);
53 Ok(())
54 }
55 fn aux<T: serde::Serialize>(&mut self, value: &T) -> FormatResult<()> {
56 let bytes = postcard::to_allocvec(value)?;
57 charge(&mut self.budget, bytes.len(), 1)?;

Callers 1

opMethod · 0.45

Calls 2

pathMethod · 0.45
nMethod · 0.45

Tested by

no test coverage detected