Trait TuneFn

Source
pub trait TuneFn:
    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

A tunable entry in a tunable set

Required Associated Types§

Source

type Inputs: Clone

Inputs to the tunable function

Source

type Output

Output from the tunable function

Required Methods§

Source

fn execute(&self, inputs: Self::Inputs) -> Result<Self::Output, AutotuneError>

Run a tuneable function

Provided Methods§

Source

fn name(&self) -> &str

The name of the tuneable function

Implementors§

Source§

impl<F, Marker> TuneFn for FunctionTunable<F, Marker>
where F: AsFunctionTunableResult<Marker>, Marker: 'static,

Source§

impl<F, Marker> TuneFn for FunctionTunableResultMap<F, Marker>
where F: AsFunctionTunable<Marker>, Marker: 'static,

Source§

type Inputs = <F as AsFunctionTunable<Marker>>::Inputs

Source§

type Output = <F as AsFunctionTunable<Marker>>::Output