Skip to main content

Transform

Trait Transform 

Source
pub trait Transform:
    Send
    + Sync
    + Clone
    + Debug {
    // Required methods
    fn apply(&self, value: f64) -> f64;
    fn invert(&self, scaled: f64) -> f64;
    fn transform_id(&self) -> &str;

    // Provided method
    fn apply_batch(&self, values: &[f64], out: &mut [f64]) { ... }
}

Required Methods§

Source

fn apply(&self, value: f64) -> f64

Source

fn invert(&self, scaled: f64) -> f64

Source

fn transform_id(&self) -> &str

Provided Methods§

Source

fn apply_batch(&self, values: &[f64], out: &mut [f64])

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§