MCPcopy Create free account
hub / github.com/biblius/validify / merge

Method merge

validify/src/error.rs:223–231  ·  view source on GitHub ↗

Merge validation errors from the given arg to the calling errors.

(&mut self, errors: ValidationErrors)

Source from the content-addressed store, hash-verified

221
222 /// Merge validation errors from the given arg to the calling errors.
223 pub fn merge(&mut self, errors: ValidationErrors) {
224 self.0.append(
225 &mut errors
226 .0
227 .into_iter()
228 .filter(|err| !self.0.contains(err))
229 .collect(),
230 )
231 }
232
233 /// Returns a slice of all the errors that ocurred during validation
234 pub fn errors(&self) -> &[ValidationError] {

Callers

nothing calls this directly

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected