[][src]Struct aoc_next::solution::Solver

pub struct Solver<F, I, O: Display> where
    F: Fn(I) -> O, 
{ pub marker: PhantomData<I>, pub name: &'static str, pub run: F, }

Container for a solving function.

The contained function solves a specific exercise.

Fields

marker: PhantomData<I>name: &'static strrun: F

Auto Trait Implementations

impl<F, I, O> RefUnwindSafe for Solver<F, I, O> where
    F: RefUnwindSafe,
    I: RefUnwindSafe

impl<F, I, O> Send for Solver<F, I, O> where
    F: Send,
    I: Send

impl<F, I, O> Sync for Solver<F, I, O> where
    F: Sync,
    I: Sync

impl<F, I, O> Unpin for Solver<F, I, O> where
    F: Unpin,
    I: Unpin

impl<F, I, O> UnwindSafe for Solver<F, I, O> where
    F: UnwindSafe,
    I: 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.