Skip to main content

Activation

Trait Activation 

Source
pub trait Activation: Send + Sync {
    // Required methods
    fn forward(&self, x: Fixed) -> Fixed;
    fn derivative(&self, x: Fixed) -> Fixed;
}

Required Methods§

Source

fn forward(&self, x: Fixed) -> Fixed

Source

fn derivative(&self, x: Fixed) -> Fixed

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§