currently, try_from_bits returns an option. but, it doesn't tell you which of its sub-fields caused it to fail.
make it instead return a Result with an error which describes the type that caused the error, and the value that was provided for that type.
currently,
try_from_bitsreturns an option. but, it doesn't tell you which of its sub-fields caused it to fail.make it instead return a
Resultwith an error which describes the type that caused the error, and the value that was provided for that type.