Trait peroxide::traits::mutable::MutFP

source ·
pub trait MutFP {
    type Scalar;

    // Required methods
    fn mut_map<F>(&mut self, f: F)
       where F: Fn(Self::Scalar) -> Self::Scalar;
    fn mut_zip_with<F>(&mut self, f: F, other: &Self)
       where F: Fn(Self::Scalar, Self::Scalar) -> Self::Scalar;
}

Required Associated Types§

Required Methods§

source

fn mut_map<F>(&mut self, f: F)
where F: Fn(Self::Scalar) -> Self::Scalar,

source

fn mut_zip_with<F>(&mut self, f: F, other: &Self)
where F: Fn(Self::Scalar, Self::Scalar) -> Self::Scalar,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl MutFP for Vec<f64>

source§

type Scalar = f64

source§

fn mut_map<F>(&mut self, f: F)
where F: Fn(Self::Scalar) -> Self::Scalar,

source§

fn mut_zip_with<F>(&mut self, f: F, other: &Self)
where F: Fn(Self::Scalar, Self::Scalar) -> Self::Scalar,

Implementors§