pub fn error_to_validation_error(error: Error) -> ValidationErrorExpand description
Collapse a runtime Error into the ValidationError the
Validate trait returns.
Error::Validation passes through unchanged. Error::Compilation and
Error::Runtime cannot be represented by the trait’s return type, so they
surface as a single synthesized Violation carrying the error’s cause
(empty rule_id) rather than silently succeeding — the same
known-limitation class as bytes.pattern on invalid UTF-8 in the
compile-time path. Callers needing to distinguish these should use
RuntimeBridge::validate_wire directly.