Crate utils

Source
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 by year! 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 and Day.
PuzzleExamples
Trait implemented by puzzles to provide example inputs and answers.