pub trait AsFunctionTunableResult<Marker>:
Send
+ Sync
+ 'static {
type Inputs: Clone;
type Output;
// Required method
fn execute(
&self,
inputs: Self::Inputs,
) -> Result<Self::Output, AutotuneError>;
// Provided method
fn name(&self) -> &str { ... }
}
Expand description
An infallible function that can be turned into a tunable.
§Marker
The marker generic is used to work around limitations in the trait resolver that causes conflicting implementation errors.