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

Method add_error

core/src/validation.rs:48–51  ·  view source on GitHub ↗

Add an error to the result

(&mut self, error: ValidationError)

Source from the content-addressed store, hash-verified

46
47 /// Add an error to the result
48 pub fn add_error(&mut self, error: ValidationError) {
49 self.errors.push(error);
50 self.is_valid = false;
51 }
52
53 /// Merge another validation result into this one
54 pub fn merge(&mut self, other: Self) {

Calls

no outgoing calls

Tested by 1