Module advent_of_code_traits::days [−][src]
Constants for all 25 days of Advent
Examples
In your module containing a solution for day 1
use advent_of_code_traits::days::Day1;
They are just plain u32
s.
assert_eq!(1, Day1);
You don’t have to use these consts at all if you don’t want to
impl Solution<2> for AdventOfCode2020 { // this works the same as `Day2` }
Constants
Day1 | |
Day2 | |
Day3 | |
Day4 | |
Day5 | |
Day6 | |
Day7 | |
Day8 | |
Day9 | |
Day10 | |
Day11 | |
Day12 | |
Day13 | |
Day14 | |
Day15 | |
Day16 | |
Day17 | |
Day18 | |
Day19 | |
Day20 | |
Day21 | |
Day22 | |
Day23 | |
Day24 | |
Day25 |