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

Method add

atomic-core/examples/semantic_storage.rs:37–52  ·  view source on GitHub ↗
(&mut self, s: &Self)

Source from the content-addressed store, hash-verified

35}
36impl Sizes {
37 fn add(&mut self, s: &Self) {
38 self.objects += s.objects;
39 self.original_bytes += s.original_bytes;
40 self.raw_bytes += s.raw_bytes;
41 self.selected_bytes += s.selected_bytes;
42 self.raw_semantic += s.raw_semantic;
43 self.selected_semantic += s.selected_semantic;
44 self.content += s.content;
45 self.compact_objects += s.compact_objects;
46 self.field_graph_objects += s.field_graph_objects;
47 self.predictive_objects += s.predictive_objects;
48 self.v1_object_bytes += s.v1_object_bytes;
49 self.v1_semantic_bytes += s.v1_semantic_bytes;
50 self.v1_graph_bytes += s.v1_graph_bytes;
51 self.selected_graph_bytes += s.selected_graph_bytes;
52 }
53}
54
55#[derive(Serialize)]

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected