MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / merge

Method merge

core/src/validation.rs:54–60  ·  view source on GitHub ↗

Merge another validation result into this one

(&mut self, other: Self)

Source from the content-addressed store, hash-verified

52
53 /// Merge another validation result into this one
54 pub fn merge(&mut self, other: Self) {
55 if !other.is_valid {
56 self.is_valid = false;
57 }
58 self.errors.extend(other.errors);
59 self.metadata.extend(other.metadata);
60 }
61}
62
63/// A validation error

Callers 3

validate_against_ruleMethod · 0.80

Calls

no outgoing calls

Tested by 1