Skip to content

Commit

Permalink
Derive trivial is_bit_valid when possible
Browse files Browse the repository at this point in the history
When deriving `FromBytes`, the implied `TryFromBytes` derive's
`is_bit_valid` impl is generated as always returning `true`. This is
faster to codegen, is faster to compile, and is friendlier on the
optimizer.

TODO: Tests

Makes progress on #5
  • Loading branch information
joshlf committed May 19, 2024
1 parent 3aef801 commit c4af213
Showing 1 changed file with 211 additions and 162 deletions.
Loading

0 comments on commit c4af213

Please sign in to comment.