pub trait Mappable<D> {
type Output<O>;
// Required method
fn map_dual<M: Fn(D) -> O, O>(self, f: M) -> Self::Output<O>;
}
Expand description
Trait for structs used as an output of functions for which derivatives are calculated.
The main intention is to generalize the calculation of derivatives to fallible functions, but other use cases might also appear in the future.
Required Associated Types§
Required Methods§
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.