Trait peroxide::traits::stable::StableFn

source ·
pub trait StableFn<T> {
    type Output;

    // Required method
    fn call_stable(&self, target: T) -> Self::Output;
}
Expand description

Stable Fn trait

§Description

Implement FnOnce is still nighlty only feature. This trait is alternative to FnOnce trait.

Required Associated Types§

Required Methods§

source

fn call_stable(&self, target: T) -> Self::Output

Implementors§

source§

impl<'a, F: Fn(&Vec<AD>) -> Vec<AD>> StableFn<&'a Vec<AD>> for ADFn<F>

§

type Output = Vec<AD>

source§

impl<'a, F: Fn(&Vec<AD>) -> Vec<AD>> StableFn<&'a Vec<f64>> for ADFn<F>

§

type Output = Vec<f64>

source§

impl<F: Fn(AD) -> AD> StableFn<AD> for ADFn<F>

§

type Output = AD

source§

impl<F: Fn(AD) -> AD> StableFn<f64> for ADFn<F>

§

type Output = f64

source§

impl<F: Fn(Vec<AD>) -> Vec<AD>> StableFn<Vec<AD>> for ADFn<F>

§

type Output = Vec<AD>

source§

impl<F: Fn(Vec<AD>) -> Vec<AD>> StableFn<Vec<f64>> for ADFn<F>

§

type Output = Vec<f64>