pub fn invalid_state(
code: impl Into<Cow<'static, str>>,
params: impl IntoIterator<Item = Parameter>,
) -> ConstraintViolationExpand description
Convenience function to construct a ConstraintViolation for a validation
performed in the State context.