You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would think if this crate could generate new and the struct has private fields, then the implementation of new could call validate, thus making it impossible to instantiate invalid.
But currently you dev has to remember to call validate, so what can we do to guarantee it gets called?
The text was updated successfully, but these errors were encountered:
I would think if this crate could generate
new
and the struct has private fields, then the implementation ofnew
could callvalidate
, thus making it impossible to instantiate invalid.But currently you dev has to remember to call
validate
, so what can we do to guarantee it gets called?The text was updated successfully, but these errors were encountered: