Skip to main content

Crate yuletide

Crate yuletide 

Source
Expand description

§yuletide

A framework for writing and managing multiple Advent of Code solutions in Rust by handling the boilerplate of registering and running solutions.

Note: This crate is in early development and will have breaking changes.

Modules§

runner
terminal_output

Structs§

Example
Defines the exepcted answer for a given input. Examples are specific to an Advent of Calendar puzzle.
Solver
A Solver is runnable Advent of Code puzzle solution for a given year and day.
SolverArgs
A collection of parameters provided to the puzzle solver at runtime.
SolverAutoRegister
Contains registration information for a puzzle solver, and is used at start up to create a directory of puzzle solvers.
SolverPart
Holds the function that solves for an Advent of Code puzzle part, and any additional metadata.
SolverRegistry
Holds a collection of puzzle solvers that can be looked up by year and day.

Enums§

SolverError
Represents an error that can happen when running an Advent of Code solver.

Type Aliases§

Result
The result of running an Advent of Code solver.
SolverPartFn
A function that solves an Advent of Code puzzle part.