In my crate there is some validation code similar to this example. I would like to make the evaluation of
path lazy, that is, to ensure
path is only constructed when an error actually occurs and not during every call to
In the implemenation of
Validate::lazy in the example, is it guaranteed that
path will in fact be lazily evaluated as described?
The actual validation code I’m referring to is sitting here but uses the eager version from the example.