pub trait Function:
Clone
+ Send
+ Sync
+ PartialEq
+ Debug
+ Serialize
+ for<'de> Deserialize<'de>
+ 'static {
// Required methods
fn arity(&self) -> usize;
fn random<R: Rng>(rng: &mut R) -> Self;
fn functions() -> &'static [Self];
fn apply(&self, args: &[f64]) -> f64;
fn to_string(&self) -> String;
}Expand description
Trait for function nodes in GP trees
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".