Skip to main content

Solution

Trait Solution 

Source
pub trait Solution {
    // Required methods
    fn part_one(&self, input: &str) -> Option<String>;
    fn part_two(&self, input: &str) -> Option<String>;
}

Required Methods§

Source

fn part_one(&self, input: &str) -> Option<String>

Source

fn part_two(&self, input: &str) -> Option<String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<F1, F2, T1, T2> Solution for (F1, F2)
where F1: Fn(&str) -> Option<T1>, F2: Fn(&str) -> Option<T2>, T1: Display, T2: Display,

Source§

fn part_one(&self, input: &str) -> Option<String>

Source§

fn part_two(&self, input: &str) -> Option<String>

Implementors§