Commit c46c812
committed
Add TryFromBytes trait
`TryFromBytes` can be implemented for types which are not `FromZeroes`
or `FromBytes`; it supports performing a runtime check to determine
whether a given byte sequence contains a valid instance of `Self`.
This is the first step of #5. Future commits will add support for a
custom derive and for implementing `TryFromBytes` on unsized types.
TODO: Add tests
Makes progress on #51 parent 66c0c30 commit c46c812
3 files changed
+705
-143
lines changed
0 commit comments