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 5e1948a
Showing 1 changed file with 215 additions and 162 deletions.

0 comments on commit 5e1948a

Please sign in to comment.