Merge validation errors from the given arg to the calling errors.
(&mut self, errors: ValidationErrors)
| 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] { |