Function mz_sql::query_model::validator::merge
source · fn merge(lhs: ValidationResult, rhs: ValidationResult) -> ValidationResultExpand description
Consumes and merges two ValidationResult instances, reusing memory
if possible.
- If both results are
Ok(())variants, the left one is returned. - If one result is
Err(errors)and the other isOk(()), theErris returned. - If both results are
Err(errors)variants, a newErrwith the concatenatederrorsis returned.