Expand description
Common utilities used by the aoc
and year crates.
Modules§
- array
- Array helpers.
- bit
- Bit manipulation helpers.
- date
- Items for representing days, years and dates.
- graph
- Graph helpers.
- grid
- Grid helpers.
- input
- Items relating to puzzle input.
- md5
- Implementation of the MD5 hash function.
- multithreading
- Multithreading helpers.
- multiversion
- Implementation of
multiversion!
macro. - number
- Traits for using numbers as generic data types.
- parser
- Parser combinator library.
- point
- 2D & 3D point implementations.
- prelude
- Standard imports for puzzle solutions.
- simd
- SIMD vector implementations.
Macros§
- examples
- Macro to generate a list of examples, implement
PuzzleExamples
and add example tests. - multiversion
- Macro to generate multiversioned functions.
- multiversion_
test - Helper for testing and benchmarking
multiversion!
library functions. - parser_
literal_ map - Macro to define a parser for one or more string literals, mapping the results.
- parser_
parse_ tree - Macro to define a custom parser using a
match
inspired parse tree syntax. - puzzles_
noop - Version of the
puzzles!
macro generated byyear!
which appends no extra arguments. - year
- Macro to generate the crate root for each year crate, implementing common items.
Traits§
- Puzzle
- Common trait implemented by puzzles to provide
Year
andDay
. - Puzzle
Examples - Trait implemented by puzzles to provide example inputs and answers.