pub struct Solver<F, I, O: Display>where
F: Fn(I) -> O,{
pub marker: PhantomData<I>,
pub name: &'static str,
pub run: F,
}
Expand description
Container for a solving function.
The contained function solves a specific exercise.
Fields§
§marker: PhantomData<I>
§name: &'static str
§run: F
Auto Trait Implementations§
impl<F, I, O> Freeze for Solver<F, I, O>where
F: Freeze,
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>
impl<F, I, O> Sync for Solver<F, I, O>
impl<F, I, O> Unpin for Solver<F, I, O>
impl<F, I, O> UnwindSafe for Solver<F, I, O>where
F: UnwindSafe,
I: UnwindSafe,
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