MCPcopy Create free account
hub / github.com/Keats/validator / unwrap_map

Function unwrap_map

validator_derive_tests/tests/nested.rs:906–912  ·  view source on GitHub ↗
(errors: &ValidationErrors, f: F)

Source from the content-addressed store, hash-verified

904
905#[allow(dead_code)]
906fn unwrap_map<F>(errors: &ValidationErrors, f: F)
907where
908 F: FnOnce(HashMap<Cow<'static, str>, ValidationErrorsKind>),
909{
910 let errors = errors.clone();
911 f(errors.errors().clone());
912}

Calls 1

errorsMethod · 0.80

Tested by

no test coverage detected