In the case where every field has a default, build should be infallible.
It would be nice if there were a way to explicitly request this, e.g. by deriving BuilderInfallible instead of Builder, so that derivation would fail if any fields lack a default, and build() does not return a Result.
In the case where every field has a
default
,build
should be infallible.It would be nice if there were a way to explicitly request this, e.g. by deriving
BuilderInfallible
instead ofBuilder
, so that derivation would fail if any fields lack adefault
, andbuild()
does not return aResult
.