Module mbryant_aoc2021::day16
source · [−]Expand description
Use a custom read N bits
primitive to implement a simple recursive parser.
Functions
Parse every two characters as a hex character.
Recursively parse the input from the start_bits
bit, returning a computed value as well
as the next bit that should be read.
Read N
bits from the input starting at start_bits
.
Type Definitions
Represents an index for a bit inside a byte array.