pub trait ActivationFunction:
Clone
+ Debug
+ Send
+ Sized
+ PartialEq
+ Eq {
// Required methods
fn formula_gnuplot(&self, x: String) -> String;
fn name(&self) -> String;
fn calculate(&self, x: f64) -> f64;
}
Required Methods§
fn formula_gnuplot(&self, x: String) -> String
fn name(&self) -> String
fn calculate(&self, x: f64) -> 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.