pub trait ExtF1:
Debug
+ Clone
+ PartialEq {
// Required methods
fn to_fn(&self) -> fn(f64) -> f64;
fn names(&self) -> &[&str];
// Provided method
fn list(&self) -> String { ... }
}Expand description
Trait for custom single-argument functions.
Required Methods§
Provided Methods§
Sourcefn list(&self) -> String
fn list(&self) -> String
List all function names.
The default implementation returns the elements of Self::names separated by commas.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".