pub struct Solution<P, S, I, O: Display>{
pub day: u8,
pub parser: P,
pub solver: Solver<S, I, O>,
}
Expand description
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§
Auto Trait Implementations§
impl<P, S, I, O> Freeze for Solution<P, S, I, O>
impl<P, S, I, O> RefUnwindSafe for Solution<P, S, I, O>
impl<P, S, I, O> Send for Solution<P, S, I, O>
impl<P, S, I, O> Sync for Solution<P, S, I, O>
impl<P, S, I, O> Unpin for Solution<P, S, I, O>
impl<P, S, I, O> UnwindSafe for Solution<P, S, I, O>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more