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

Method value

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

Source from the content-addressed store, hash-verified

30 charge(&mut self.remaining, count, size)
31 }
32 fn value(&mut self, role: usize) -> FormatResult<u64> {
33 if let Some(p) = &mut self.predictive {
34 p.value(role)
35 } else {
36 get(&mut self.c.control)
37 }
38 }
39 fn count<T: AllocationCost>(&mut self, role: usize) -> FormatResult<usize> {
40 let n = number(self.value(role)?)?;
41 let available = self

Callers 5

countMethod · 0.45
flagMethod · 0.45
bytesMethod · 0.45
leavesMethod · 0.45
lineMethod · 0.45

Calls 1

getFunction · 0.70

Tested by

no test coverage detected