-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make new UInt definition less verbose (#51)
This PR adds a macro that simplifies the definition of new integer values, and uses it for the integers we need to define here. It allows a new `UInt` type to be defined simply by listing its bits. Unfortunately, because Rust macros only permit recursive matching in one direction, we have to use the little-endian bit order, even though big-endian would be easier to read. Not a huge change, but it at least allows us to remove the `#[rustfmt::skip]` line.
- Loading branch information
1 parent
3215a05
commit ce1a465
Showing
1 changed file
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters