[][src]Struct aoc_next::solution::Solution

pub struct Solution<P, S, I, O: Display> where
    P: Parsing<I>,
    S: Fn(I) -> O, 
{ pub day: u8, pub parser: P, pub solver: Solver<S, I, O>, }

A solution for a specific exercise.

Fields

day: u8

The day of the exercise; used to determine the input to use.

parser: P

The parser for the input.

solver: Solver<S, I, O>

The solver of the exercise.

Trait Implementations

impl<P, S, I, O: Display> Solvable for Solution<P, S, I, O> where
    P: Parsing<I>,
    S: Fn(I) -> O, 
[src]

Auto Trait Implementations

impl<P, S, I, O> RefUnwindSafe for Solution<P, S, I, O> where
    I: RefUnwindSafe,
    P: RefUnwindSafe,
    S: RefUnwindSafe

impl<P, S, I, O> Send for Solution<P, S, I, O> where
    I: Send,
    P: Send,
    S: Send

impl<P, S, I, O> Sync for Solution<P, S, I, O> where
    I: Sync,
    P: Sync,
    S: Sync

impl<P, S, I, O> Unpin for Solution<P, S, I, O> where
    I: Unpin,
    P: Unpin,
    S: Unpin

impl<P, S, I, O> UnwindSafe for Solution<P, S, I, O> where
    I: UnwindSafe,
    P: UnwindSafe,
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.