pub struct FunctionTunableResultMap<F, Marker>where
F: AsFunctionTunable<Marker>,{ /* private fields */ }
Expand description
Tunable implemented as a function or closure that returns a plain value, wrapped in Ok
.
§Marker
The marker generic is used to work around limitations in the trait resolver that causes conflicting implementation errors.
Trait Implementations§
Source§impl<F, Marker> TuneFn for FunctionTunableResultMap<F, Marker>where
F: AsFunctionTunable<Marker>,
Marker: 'static,
impl<F, Marker> TuneFn for FunctionTunableResultMap<F, Marker>where
F: AsFunctionTunable<Marker>,
Marker: 'static,
Source§type Inputs = <F as AsFunctionTunable<Marker>>::Inputs
type Inputs = <F as AsFunctionTunable<Marker>>::Inputs
Inputs to the tunable function
Source§type Output = <F as AsFunctionTunable<Marker>>::Output
type Output = <F as AsFunctionTunable<Marker>>::Output
Output from the tunable function
Source§fn execute(
&self,
inputs: <FunctionTunableResultMap<F, Marker> as TuneFn>::Inputs,
) -> Result<<FunctionTunableResultMap<F, Marker> as TuneFn>::Output, AutotuneError>
fn execute( &self, inputs: <FunctionTunableResultMap<F, Marker> as TuneFn>::Inputs, ) -> Result<<FunctionTunableResultMap<F, Marker> as TuneFn>::Output, AutotuneError>
Run a tuneable function
impl<F, Marker> Send for FunctionTunableResultMap<F, Marker>where
F: AsFunctionTunable<Marker> + Send,
impl<F, Marker> Sync for FunctionTunableResultMap<F, Marker>where
F: AsFunctionTunable<Marker> + Sync,
Auto Trait Implementations§
impl<F, Marker> Freeze for FunctionTunableResultMap<F, Marker>where
F: Freeze,
impl<F, Marker> RefUnwindSafe for FunctionTunableResultMap<F, Marker>where
F: RefUnwindSafe,
Marker: RefUnwindSafe,
impl<F, Marker> Unpin for FunctionTunableResultMap<F, Marker>
impl<F, Marker> UnwindSafe for FunctionTunableResultMap<F, Marker>where
F: UnwindSafe,
Marker: 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