pub trait DualStruct<D, F> {
type Real;
type Inner;
// Required methods
fn re(&self) -> Self::Real;
fn from_inner(inner: &Self::Inner) -> Self;
}
Expand description
A struct that contains dual numbers. Needed for arbitrary arguments in ImplicitFunction.
The trait is implemented for all dual types themselves, and common data types (tuple, vec, array, …) and can be implemented for custom data types to achieve full flexibility.
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.