Part

Trait Part 

Source
pub trait Part<const PART: u8, const DAY: u8> {
    // Required method
    fn solve(input: &str) -> impl Display;
}
Expand description

A solution of a part of an advent of code puzzle.

It takes the input as a string slice and returns some output that can be converted to a string.

Required Methods§

Source

fn solve(input: &str) -> impl Display

Solves the puzzle for that part.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§