Trait IntoTuneFn

Source
pub trait IntoTuneFn<In, Out, Marker> {
    type Tunable: TuneFn<Inputs = In, Output = Out>;

    // Required method
    fn into_tunable(self) -> Self::Tunable;
}
Expand description

Something 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.

Required Associated Types§

Source

type Tunable: TuneFn<Inputs = In, Output = Out>

The output tunable type

Required Methods§

Source

fn into_tunable(self) -> Self::Tunable

Convert to a tunable

Implementors§

Source§

impl<F: AsFunctionTunableResult<Marker>, Marker: 'static> IntoTuneFn<<F as AsFunctionTunableResult<Marker>>::Inputs, <F as AsFunctionTunableResult<Marker>>::Output, (Marker, IsFunction)> for F