pub struct FunctionTunable<F, Marker>where
F: AsFunctionTunableResult<Marker>,{ /* private fields */ }
Expand description
Tunable implemented as a function or closure
§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 FunctionTunable<F, Marker>where
F: AsFunctionTunableResult<Marker>,
Marker: 'static,
impl<F, Marker> TuneFn for FunctionTunable<F, Marker>where
F: AsFunctionTunableResult<Marker>,
Marker: 'static,
Source§type Inputs = <F as AsFunctionTunableResult<Marker>>::Inputs
type Inputs = <F as AsFunctionTunableResult<Marker>>::Inputs
Inputs to the tunable function
Source§type Output = <F as AsFunctionTunableResult<Marker>>::Output
type Output = <F as AsFunctionTunableResult<Marker>>::Output
Output from the tunable function
Source§fn execute(
&self,
inputs: <FunctionTunable<F, Marker> as TuneFn>::Inputs,
) -> Result<<FunctionTunable<F, Marker> as TuneFn>::Output, AutotuneError>
fn execute( &self, inputs: <FunctionTunable<F, Marker> as TuneFn>::Inputs, ) -> Result<<FunctionTunable<F, Marker> as TuneFn>::Output, AutotuneError>
Run a tuneable function
impl<F, Marker> Send for FunctionTunable<F, Marker>where
F: AsFunctionTunableResult<Marker> + Send,
impl<F, Marker> Sync for FunctionTunable<F, Marker>where
F: AsFunctionTunableResult<Marker> + Sync,
Auto Trait Implementations§
impl<F, Marker> Freeze for FunctionTunable<F, Marker>where
F: Freeze,
impl<F, Marker> RefUnwindSafe for FunctionTunable<F, Marker>where
F: RefUnwindSafe,
Marker: RefUnwindSafe,
impl<F, Marker> Unpin for FunctionTunable<F, Marker>
impl<F, Marker> UnwindSafe for FunctionTunable<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